Draws an empty rectangle from two corners and a line thickness.
Engine status: Rendered
This command produces visible output in the preview.
BOX x1, y1, x2, y2, tSIZE 100 mm, 150 mm
GAP 3 mm, 0 mm
CLS
BOX 40, 40, 760, 400, 4
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 |
|---|---|
x1, y1 | Top-left corner, in dots |
x2, y2 | Bottom-right corner, in dots — not width/height |
t | Line thickness in dots; the inside stays empty |
Reading the second pair as width/height: BOX 40, 40, 200, 100, 4 draws a 160×60 box with corners (40,40)–(200,100), not a 200×100 one. ZPL ^GB takes width/height; compute the corners when porting.
ZPL equivalent: ^GB · EPL X · Language comparison
SIZE · GAP · REFERENCE · CLS · TEXT · BARCODE · QRCODE · BAR · BITMAP · PRINT · DIRECTION · DENSITY · SPEED · OFFSET · SET · CODEPAGE · BLINE