Declares label width and height in millimetres. TSPL measures media in mm while coordinates are in dots.
Engine status: Rendered
This command produces visible output in the preview.
SIZE <w> mm, <h> mmSIZE 100 mm, 150 mm
GAP 3 mm, 0 mm
CLS
PRINT 1Open this example in the preview →
Output of the example above in our renderer (203 dpi). Not verified on a physical printer.
| Parameter | Meaning |
|---|---|
w mm | Label width; with the mm suffix in millimetres, without a unit in inches |
h mm | Label height, same unit rule; the preview converts at 8 dots per mm |
Leaving out the unit: in TSPL a bare number means INCHES, so SIZE 100, 150 asks for a 100 × 150 inch label (the preview clamps it). Write SIZE 100 mm, 150 mm.
ZPL equivalent: ^PW · ^LL · EPL q · EPL Q · Language comparison
GAP · REFERENCE · CLS · TEXT · BARCODE · QRCODE · BOX · BAR · BITMAP · PRINT · DIRECTION · DENSITY · SPEED · OFFSET · SET · CODEPAGE · BLINE