Overview
The Data Matrix symbology is 2D matrix-style barcode. It can encode full 256 character extended-ASCII.
Variants
Gs1DataMatrix is a variant that should be used when encoding data that is in GS1 Application Identifier standard format.
HIBC Data Matrix is a variant that should be used when encoding HIBC formatted data.
Invoking
- The data field can contain any extended ASCII data.
- When the parse option is specified, any instances of ^NNN in the data field are replaced with their equivalent ASCII value, useful for specifying unprintable characters.
- When the parsefnc option is specified, non-data function characters can be specified by ^FNC1 through ^FNC6.
- The rows and columns options are used to specify the size of the symbol, either square or rectangular, one of:
- Square: 10x10, 12x12, 14x14, 16x16, 18x18, 20x20, 22x22, 24x24, 26x26, 32x32, 36x36, 40x40, 44x44, 48x48, 52x52, 64x64, 72x72, 80x80, 88x88, 96x96, 104x104, 120x120, 132x132, 144x144
- Rectangular: 8x18, 8x32, 12x26, 12x36, 16x36, 16x48
- If the columns and rows are unspecified, the encoder will default to creating a (non-rectangular) symbol that is the minimum size to represent the given data.
- The raw option denotes that the data field is providing the input as a pre-encoded codewords in ^NNN format, suitable for direct low-level encoding.
Examples
0 0 moveto (This is Data Matrix) () /datamatrix /uk.co.terryburton.bwipp findresource exec
0 0 moveto (This is ^068ata Matrix) (parse) /datamatrix /uk.co.terryburton.bwipp findresource exec
0 0 moveto (Fixed size) (rows=48 columns=48) /datamatrix /uk.co.terryburton.bwipp findresource exec
0 0 moveto (Rectangular) (rows=16 columns=48) /datamatrix /uk.co.terryburton.bwipp findresource exec
0 0 moveto (^098^099^100^142^164^186^101^102^103^104^105) (raw) /datamatrix /uk.co.terryburton.bwipp findresource exec