← Guides & articles
ED
Eduard Diaz
IT technician at S-IE, an official Zebra partner · Updated

^PW · Print Width

Label print width.

Syntax and practical example

^PWa

In dots. Example: ^PW812

^XA
^PW400
^LL400
^FO20,20^GB360,200,2^FS
^FO40,60^A0N,30,30^FDWIDTH 400^FS
^XZ

Educational example; not a certified label or a physical print test. Sample text and codes stay the same in every language for comparison.

Expected result with ^PW

^PW400 sets a logical width of 400 dots. The frame starts at X=20 and is 360 wide, ending at 380 with 20-dot margins. Reduce ^PW to 300 to see which content falls outside the declared area.

What should I check if ^PW does not give the expected result?

^PW does not shrink text or barcodes to fit, nor allow printing beyond the head. When moving from 203 to 300 DPI, recalculate positions and dimensions as well as label width.

Related commands

Zebra technical reference ↗

ED

About the author

Eduard Diaz

Eduard Diaz is an IT technician (development) at S-IE, an official Zebra partner with more than 20 years providing identification and labelling services. He builds and maintains EditorZPL to make working with ZPL and Zebra label printers easier.

s-ie.cat

Related tools