Skip to main content

DataMatrix

Mandatory properties​

The following properties are available in addition to the common label object properties.

PropertyTypeDescription
typestringMust be DataMatrix.
textstringBarcode data. May contain dynamic text.

Optional properties​

The following properties are available in addition to the common label object properties.

PropertyTypeDescription
moduleSizenumberSize of one module (cell) in millimeters. Default is 5.
sizeobjectFixed symbol size in modules as {"width": W, "height": H}. If omitted, the minimum size that fits the data is used.
quietZonebooleanEnable or disable the quiet zone. Default is true.
extraQuietZonenumberExtra quiet zone width added on all sides.
rectangularbooleanIf true, prefer a rectangular symbol over a square one. Default is false.
colorstringColor of the modules. May contain dynamic text. Default is black.

Example​

{
"type": "DataMatrix",
"x": 10.0,
"y": 10.0,
"text": "ABC-12345",
"moduleSize": 0.5
}