Barcodes with Special Parameters

Barcodes with special parameters include:

Aztec

The following special parameters can be used with the Aztec barcode:

  • ErrorCorrection - sets the error correction level.

  • Format - sets the barcode’s character encoding.

The ErrorCorrection parameter enables you to set the error correction level.A higher value will produce a better quality symbol with a larger amount of data. This parameter can hold numeric values between 0 (low quality) and 60 (high quality).

Example:

XMPBarCode("Aztec","http://www.xmpie.com","ErrorCorrection = 50")

The Format parameter enables you to set the barcode’s character encoding. This parameter can receive the following three values:

  • Default - the standard format without a special header.

  • Industry  -  the Industry mode supports peculiar industry formats. If this encoding is used, an additional parameter (FormatSpecifier) is required. This parameter can receive string values of either 2 digits or 1 letter.

  • UCCEAN - special format defined by UCC and EAN/GS1 for encoding Application Identifiers. This format adds the function character FNC1 at 1st position in the symbol.

Examples:

Industry format:

XMPBarCode("Aztec","http://www.xmpie.com","Format=Industry;FormatSpecifier=22")

UCCEAN format:

XMPBarCode("Aztec","http://www.xmpie.com","Format=UCCEAN")

DataMatrix and CMDM_Mailmark

The Format parameter enables you to set the barcode’s character encoding. This parameter can receive the following five values:

  • Default - the standard format of Data Matrix without a special header.

  • Industry - the Industry mode supports peculiar industry formats (adds FNC1 at 2nd position).

  • UCCEAN - special format defined by UCC and EAN/GS1 for encoding Application Identifiers. This format adds the function character FNC1 at 1st position in the symbol.

  • Macro05 -  [)>Rs05Gs is encoded at the beginning of the code, RS + EOT is added as trailer.

  • Macro06 - [)>Rs06Gs is encoded at the beginning of the code, RS + EOT is added as trailer.

Example:

XMPBarCode("DataMatrix","http://www.xmpie.com","Format = Industry")

 

The size parameter enables you to change the shape of the barcode from the default square to rectangular. The default value is false.

The following values are supported:

8x64

12x64

16x64

24x32

24x36

24x48

24x64

26x32

26x40

26x48

26x64

Example:

XMPBarcode("DataMatrix", "http://www.xmpie.com", "size=8x48")

 

The rectangular parameter enables you to change the shape of the barcode from the default square to a rectangle. The default value is false.

Example:

XMPBarcode("CMDM_Mailmark", "JGB 011123456712345678CW14NJ1T 0EC2M2QS      REF1234567890QWERTYUIOPASD", "rectangular=true")

GS1 DataBar Expanded Stacked

The default number of data segments per row for this barcode is 4.

The NumSegmentsPerRow parameter enables you to modify the default number of data segments per row.

This parameter can contain numeric values between 4 and 22. If you entered a value outside this range, it will be automatically corrected to the default value.

Example:

XMPBarCode("GS1DataBarExpStacked","http://www.xmpie.com","NumSegmentsPerRow = 15")

MaxiCode

The Mode parameter determines the encoding method for the MaxiCode barcode.

This parameter can receive the following values:

  • 2 - SCM Numeric - Structured Carrier Message (Postal Code only numeric, up to 9 digits)

  • 3 - SCM Alphanumeric - Structured Carrier Message (Postal Code alphanumeric, up to 6 characters)

  • 4 - For numeric and alphanumeric character sequences (Standard Error Correction). This is the default value.

  • 5  - Full EEC, the same as Mode 4 but with Enhanced Error Correction (safer but less usable data).

Example:

XMPBarCode("MaxiCode","http://www.xmpie.com","Mode = 3")

MicroPDF

The Version parameter specifies the dimensions for the MicroPDF barcode. This parameter’s values are of the form: eMPDFVer_[ColumnsXRows], where [ColumnsXRows]can receive the following values:

1X11, 1X14, 1X17, 1X20, 1X24, 1X28, 2X8, 2X11, 2X14, 2X17, 2X20, 2X23, 2X26, 3X6, 3X8, 3X10, 3X12, 3X15, 3X20, 3X26, 3X32, 3X38, 3X44, 4X4, 4X6, 4X8, 4X10, 4X12, 4X15, 4X20, 4X26, 4X32, 4X38, 4X44.

The default value is: eMPDFVer_Default.

Example:

XMPBarCode("MicroPDF","http://www.xmpie.com","Version = 3X44")

PDF417

The following special parameters can be used with the PDF417 barcode:

  • Columns - sets the number of graphic columns [1...30] for PDF417 to a fixed value. If not set, the number of columns is calculated automatically.

  • Rows - sets the number of graphic rows [3..90] for PDF417 to a fixed value. If not set, the number of rows is calculated automatically.

  • RowHeight - sets the height of a PDF417 row to a fixed value [1/1000 mm]. If not set, the height is calculated automatically with respect to the bounding rectangle.

  • RowColRatio - sets PDF417 row to column ratio to a fixed value. This only works, if neither the value of PDF417-rows nor PDF417-columns are set to a constant value. If not set, the row:column ratio is chosen automatically.

  • ECLevel - sets "Error Correction Level" for PDF417 to a fixed value. Possible values are [0...8] where 0 means only error recognition (no EC) and 8 means the highest level of EC. If not set, the error correction level is chosen automatically.

  • Checksum - specifies the value for the 16-bit CRC method Check Digit calculation algorithm. Possible values are [1...16].

  • EncodingMode  specifies the encoding mode. Possible values are Binary and Default(or no parameter specified). The Binary mode will enforce binary encoding. This mode is faster, if binary data is to be encoded. Encoding will be in binary mode without further data analysis. The Default mode chooses the best internal representation for non-binary data. Input data is analyzed and text, numeric or binary compaction mode will be used accordingly to produce the smallest symbol.

Examples:

XMPBarCode("PDF417","|->[FirstName]","Rows=5;Columns=10")

XMPBarCode("PDF417","|->[FirstName]","Checksum=8")

QRCode

The following special parameters can be used with the QRCode barcode:

  • ECLevel - sets the error correction level.

  • Format - sets the barcode’s character encoding.

  • Mask- specifies the encoding process optimization.

  • KanjiChineseCompaction- enables compaction for Kanji or Simplified Chinese characters into 13-bit values.

A commonly-used parameter for QRCode is ECLevel, which enables you to set the error correction percentage to one of the following values:

  • Low -  7%

  • Medium - 15%. This is the default value.

  • Quartil - 25%

  • High -  30%

Error correction involves encoding additional data in the barcode that helps in reconstructing the data in case of partial damage or defect in the generated barcode. This ability to compensate for partial damage improves the credibility of barcodes. However, there is a fine balance when selecting the desired setting: the higher the error correction level, the less actual information can be encoded. One must balance the error correction level value with the string to be encoded in order to stay in line with the capacities associated with the specific symbology.

Example:

XMPBarCode("QRCode","http://www.xmpie.com","ECLevel = Low")

The Format parameter enables you to set the barcode’s character encoding. This parameter can receive the following three values:

  • Default - the standard format of QR-Code without a special header.

  • Industry -  For special industry formats (FNC1 is inserted at second position). If this encoding is used, an additional parameter (ApplicationIndicator) is required. This parameter can receive string values of either 2 digits or 1 letter.

  • UCCEAN - Special format defined by UCC and EAN/GS1. Used for encoding of so-called Application Identifiers (FNC1 is added at first position).

Examples:

Industry format:

XMPBarCode("QRCode","http://www.xmpie.com","Format = Industry","ApplicationIndicator = 22")

UCCEAN format:

XMPBarCode("QRCode","http://www.xmpie.com","Format = UCCEAN")

The Mask parameter enables you to define encoding process optimization for generation of QRCode. Possible values are [0...7], where 0 means longer generation and 7 means the fastest generation speed. If no parameter is specified, the 0 value is used by default.

Examples:

XMPBarCode("QRCode","http://www.xmpie.com","Mask = 6")

The KanjiChineseCompaction parameter  enables compaction for Kanji or Simplified Chinese characters into 13-bit values. The compaction is possible only in the following cases:

  • Kanji characters: supplied as a multi-byte character set (Shift JIS X 0208).

  • Simplified Chinese characters: supplied as a multi-byte character set (GB2312).

The compaction of Kanji characters is done according to ISO/IEC 18004 (and AIM ITS/97-001). The compaction of the Simplified Chinese characters is done according to GB/T 18284-2000.

Possible values for the KanjiChineseCompaction parameter are:

  • None, Default - no compaction is used for multi-byte character sets

  • Kanji - Kanji characters (Shift JIS X 0208) should be compacted

  • Chinese - Chinese characters (GB2312) should be compacted