Plain English

Draws a Data Matrix 2D barcode at the specified position. Data Matrix is commonly used for small parts marking and pharmaceutical labelling due to its compact size.

When to use

When you need a compact 2D barcode for small labels or high-density data encoding.

Syntax

DMATRIX x,y,width,height,"data"

Parameters

ParameterDescription
xHorizontal position in dots
yVertical position in dots
widthModule width in dots
heightModule height in dots
dataThe data to encode (in double quotes)

Example

DMATRIX 50,50,400,400,"DMX-12345"

Data Matrix barcode encoding "DMX-12345"

Try it in the playground View all TSPL commands