The Data Matrix symbology is 2D matrix-style barcode. It can encode full 256 character extended-ASCII.
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.
The encoding option denotes the high-level encoding scheme for the input data, either byte, ascii, edifact, c40, text or x12. The default is byte encoding which permits any extended-ASCII character in the data but may be less compact than other formats for certain types of input.
The rows and columns options are used to specify the size of the symbol, either square or rectangular, one of:
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
0 0 moveto (This is ^068ata Matrix) (parse) datamatrix