activePDF Toolkit 2011 API Reference
DataMatrix
Appendices > Symbologies > 2-Dimensional (2D) Symbologies > DataMatrix

Glossary Item Box

Overview

DataMatrix is a two-dimensional, variable length symbology used for encoding large amounts of data. Each barcode contains a series of data cells arranged in a unique perimeter pattern. DataMatrix barcodes are very efficient, allowing for a proper read even with 60% of the data area damaged.

NOTE: DataMatrix barcodes can encode over 2000 characters, but it is difficult for most scanners to read more than 800. If you require more data storage than 800 characters, you should use PDF417.


Encoding

DataMatrix can encode all 128 Standard ASCII values using a three-digit ASCII code, preceded by the character. For example, the carrot symbol ("^") corresponds to ASCII code \094. For a complete list of ASCII values, refer to the ASCII Table.

Structure

DataMatrix does not allow for the random choosing for the combination of rows and columns. For a list of available sizes, refer to the DataMatrixTargetSizeID.

Requirements

Each DataMatrix barcode consists of modules that influence the overall size. The overall shape of the barcode may be rectangular, but the data cell of the DataMatrix symbol is always square. You can set the module size with the DataMatrixModuleSize property.

Data encodes using any combination of 6 different DataMatrix encoding schemes:
  • ASCII - Invoked prior to any other encoding scheme, all other schemes return to ASCII.
  • C40 - Primarily encodes upper-case alphanumeric data.
  • Text - Primarily encodes lower-case alphanumeric data.
  • Base256 - Encodes all byte values from 0 to 255.
  • x12 - Primarily encodes ANSI X12 EDI data set.
  • EDIFACT - Encodes ASCII characters from 32 to 94.
Toolkit will apply the encoding scheme that produces the shortest codeword stream.