Sign In
Products
ZPL ViewerBarcode GeneratorImage → ZPLZPL cheat sheetLabel DesignerTemplate Gallery
Developers
API QuickstartAPI ReferenceMCP ServerBulk GenerationWebhooksSDKs & ExamplesLimitsDirectPrint agent NewGitHub ActionVS Code extensionOn-Premise
Solutions
Logistics & ShippingE-CommerceERP & WMSManufacturingRetailHealthcare & LaboratoryAll solutions
Tools
ZPL Diagnostics HubZPL DebuggerSize & DPI AnalyzerDPI ConverterBarcode fit calculatorShipping Label AnalyzerFont InspectorOrientation DebuggerCalibration AssistantPrinter Compatibility CheckerBarcode Readability CheckerPrinter Language DetectorThermal Printer Test PackZPL ToolsEPL ToolsTSPL ToolsCPCL ToolsPrinter Language ConverterAll ToolsGuidesPricing
Language
EnglishTürkçeDeutsch
Home›All EPL commands›X

X — Box outline

Draws an empty rectangle from two corner points and a line thickness.

Engine status: Rendered

This command produces visible output in the preview.

Syntax

Xx1,y1,t,x2,y2

Example

N
q812
Q1218,24
X40,40,4,760,400
P2

Open this example in the preview →

Open the validator →

Rendered example

X40,40,4,760,400

Output of the example above in our renderer (203 dpi). Not verified on a physical printer.

Parameters

ParameterMeaning
x1,y1Top-left corner, in dots
tLine thickness in dots — in EPL the thickness sits BETWEEN the corners
x2,y2Bottom-right corner, in dots

Common mistake

Assuming the TSPL/CPCL parameter order: in EPL the thickness is the third parameter (X40,40,4,760,400); written TSPL-style as X40,40,760,400,4 it asks for a 760-dot-thick box.

The same job in other languages

ZPL equivalent: ^GB · TSPL BOX · Language comparison

All EPL commands

N · q · Q · A · B · LO · LW · P · R · S · D · I · JF · ZT · ZB · FS · FE · FR · FK · FI · V · ?

All EPL commands