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›ZPL Lint Rules›ZPL6004

ZPL6004 — ^PW wider than the selected label

^PW asks for a print width larger than the label size selected for the preview (the media). The printer and the preview both stop at the label edge, so the right-hand part of the format is simply not on the paper. The usual cause is ZPL generated for a wider label or for a higher resolution: 1200 dots is 4 inches at 300 dpi but almost 6 inches at 203 dpi.

SeverityWarning
CategoryLabel bounds

Label that triggers it

^XA^PW1200^FO50,50^A0N,40^FDHELLO^FS^XZ

Finding: ZPL6004 · line 1:4 — ^PW 1200 dots is wider than the selected label (812 dots) — anything past the label edge is not printed on the media

Open the broken label in the editor →

How to fix it

Check that the label size and resolution match the printer. If the ZPL came from a carrier or a platform, ask for the 203 dpi variant or scale it; otherwise lower ^PW to the label width shown in the message.

Corrected label

^XA^PW812^FO50,50^A0N,40^FDHELLO^FS^XZ

Open the corrected label in the editor

Commands involved

^PW

ZPL6001 Field origin outside the label · ZPL6002 Barcode runs past the right edge · ZPL6003 Barcode runs past the bottom edge

In CI

npx labelixa validate "labels/**/*.zpl" lints your files and prints this page's address next to each finding. /docs/cli

Lint your ZPL now