Changes between Version 3 and Version 4 of Ticket #897, comment 6


Ignore:
Timestamp:
Jul 20, 2016, 8:09:42 AM (8 years ago)
Author:
olle

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #897, comment 6

    v3 v4  
    22
    33 * PDF file creation: Ticket #674 (Generate document with report of sequencing results) addressed many items needed for the current ticket: Creating PDF files by modifying a PDF template with new text and image data. A local java utility class, `PdfUtil`, was created to simplify this using the open source version of library `iText` under the Affero General Public License. The current ticket will use the same solution, with possible extensions to the `PdfUtil` class being added, when needed.
    4  * PDF templates:[[BR]]a. Program !BarTender(r) was used to create and save templates of needed referral forms as PDF files, after SCAN-B id numbers and barcodes had been removed from the forms.[[BR]]b. Documents stored as word-processing files (the patient info), were saved as PDF files, after SCAN-B id numbers had been removed.[[BR]]Post-processing: The originally saved template PDF files were each opened by the "Preview" application on an OS-X system, after which were saved again, in order to decrease the file size. The decrease could be dramatic, e.g. 87.05 -> 0.77 MB. The second PDF copy with decreased file size was then used as template for the further development.
     4 * PDF templates:[[BR]]a. Program !BarTender(r) was used to create and save templates of needed referral forms as PDF files, after SCAN-B id numbers and barcodes had been removed from the forms.[[BR]]b. Documents stored as word-processing files (the patient info), were saved as PDF files, after SCAN-B id numbers had been removed.[[BR]]Post-processing: The originally saved template PDF files were each opened by the "Preview" application on an OS-X system, after which they were saved again, in order to decrease the file size. The decrease could be dramatic, e.g. 87.05 -> 0.77 MB. The second PDF copy with decreased file size was then used as template for the further development.
    55 * Barcode generation: Open source java library Barcode4J (http://barcode4j.sourceforge.net/) uses the Apache License, version 2.0, and allows creation of barcodes using a number of variants and standards, including the required "Code 128". A downside is that there has not been much active development since release of the current version 2.1 2010-12-15. However, since the library was able to produce the needed barcodes, it was decided to use the former in the first version of referral form generation. The library allows several ways to configure the barcode generation, one being use of the Avalon Framework (project now closed), also released under the Apache License, version 2.0. Use of the latter was originally to allow configuration via XML files, but can also be used to configure Barcode4J dynamically. It was therefore included in the solution.
    66 * Barcode human-readable text: Library Barcode4J allows several alternatives to draw an optional human-readable version of the barcode text over or under the barcode image. However, since the `iText` library also offers these possibilities, it was decided to use the latter via the `PdfUtil` class to enter human-readable text for barcodes.