Changes between Initial Version and Version 1 of Ticket #897, comment 6


Ignore:
Timestamp:
Jul 4, 2016, 4:12:39 PM (8 years ago)
Author:
olle

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #897, comment 6

    initial v1  
    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.
     7 * Production of referral forms from the created PDF files: The intention is that the Adobe Reader application should be used to open a created form batch PDF file, and the final referral forms should be printed from this application. Tests printing the unmodified referral form template PDF files this way, revealed:[[BR]]a. Output of referral form template PDF files saved from !BarTender(r) were identical to those produced by printing directly from the latter program.[[BR]]b. Output of the template PDF file saved from a word processing program (patient info) was NOT identical to the one produced by printing directly from the latter program, but differed both in scale and offset at the left and top margin.
     8
     9Notes on the PDF templates:
     10
     11 * The PDF templates for referral forms have dimensions that nearly, but not exactly, correspond to those of an A4 page. However, all template files saved from !BarTender(r) seem to have the same dimensions. This allows (at least) two solutions, when creating the form batch PDF files:[[BR]][[BR]]a. The template PDF file could be imported directly, without adjustment, and the SCAN-B id number text and barcodes added to this.[[BR]]b. The template PDF file could be adjusted to A4 format when imported, before adding SCAN-B id number text and barcodes.[[BR]][[BR]]Alternative (a) leads to slightly simpler code, since the adjustment step is eliminated, but might lead to more problems in the future, if new templates are needed, that not have exactly the same dimensions as the old. Since batch file 2 uses templates both created with !BarTender(r) and a word processing program, some adjustment will be needed here in any case. It was therefore decided to use solution (b), where the imported PDF data is adjusted to A4 format.