^PW — Print Width

ZPL course · ZPL FAQ

Command reference: Labelary ZPL introduction.

Below, commands are bold, parameters are colored, field data stays plain.

^PW — Print Width

Goal

Set the print width with ^PW.

Description

^PW sets the print width for the label. The width is specified in dots and determines the maximum printable area along the X axis — fields past it are clipped.

Example

^XA
^PW500
^FX Printable width is now 500 dots.
^FO20,20^A0N,28,28^FDWidth: 500 dots^FS
^FO20,70^GB460,3,3^FS
^XZ

Rendered ^PW label

Result

A 500-dot printable area; the rule below spans nearly all of it.

Article author: Arthur Isaev