PDF bar codes guide

The pdf converter supports several bar code types.

This list shows the supported barcode types:

Type DLSOFT/bc$ TYPE
BAR39 9 (Code 39)
BAR39EXT 19 (Ext Code 39)
CODE93 37
CODE11 16
CODABAR 17
CODE93EXT 38
CODE128 10
EAN13 1
EAN8 2
EAN128 11 (GS-128)
INTERLEAVED25 7 (ITF-14)
POSTNET 29
UPCA 5
UPCE 6
PDF417 1003
QRCODE 1010
DATAMATRIX 1005
AZTECCODE 1004

These bar codes are inserted in the report via the bc$ function. See the Infor ERP LN programmers guide.

The options set in bc$ are not supported, because a different library is used. Instead of the dlSoft, the java4less bar code generation library is used.

The bar codes can be adjusted/tweaked through the PDF.properties file. For example, changing the bar color, changing the font, and changing the bar code width for all bar codes, can be done by setting this property:

BARCODE=barColor=#FF0000;X=20;textFont=Arial-BOLDITALIC-70;leftMarginCM=100;

You can change a specific bar code. For example changing the bar color for all EAN13 bar codes by specifying this property:

EAN13=barColor=#0000FF;

You can change a specific bar code for a specific report. For example, changing the bar color for all EAN13 bar codes in report whwmd543001000 can be done by specifying this property:

whwmd543001000.EAN13=barColor=#222222;

All properties that can be set on the different bar codes can be found on this website:

http://www.java4less.com/barcodes/BarcodesGuide.pdf.

By default, these properties are set by the converter:

  • resolution=1
  • barHeightCM=150
  • leftMarginCM=0
  • topMarginCM=0
  • X=5 (For PDF417 this value is 10)
  • N=2
  • postnetHeightShortBar=50
  • postnetHeightTallBar=150
  • textFont=Arial-NORMAL-35
Note: For QR-code generation, the pdf converter uses zxing instead of java4less. The maximum number of bytes that can be stored for the zxing library is 2334 bytes.

These properties are supported:

ErrorCorrectionLevel
Can be set to 2 or 3, where 2 is 25% correction and 3 is 30% correction.
backColor
The background color.
barColor
The foreground color.