A real 4x6 shipping sticker
ZPL course · ZPL FAQ
Command reference:
Labelary ZPL introduction.
Below, commands are bold,
parameters are colored,
field data stays plain.
Shipping sticker — text, barcode and emblem on 4 by 6
Goal
Compose a complete shipping sticker: addresses, a tracking barcode and a boxed emblem, all positioned on one 4 by 6 label.
Description
Real parcel stickers all share one anatomy: small sender lines on top, a rule, a big recipient block, a second rule, then the machine-readable part — usually a Code 128 tracking number — with a small emblem box for the carrier mark. Sizes come from lesson 51 (812 by 1218 dots at 203 dpi); the barcode mechanics from lesson 10. Read the format top to bottom: every ^FO moves the cursor, every ^FS stamps the field.
Example
^XA
^PW812
^LL1218
^FO30,30^A0N,28,28^FDFROM: ACME WAREHOUSE 7^FS
^FO30,70^GB752,3,3^FS
^FO30,100^CF0,60,60^FDJane Doe^FS
^FO30,180^A0N,35,35^FD12 Example Street, Springfield^FS
^FO30,280^GB752,3,3^FS
^FO30,320^BY3^BCN,120,Y,N,N^FD1Z9999999999999999^FS
^FO560,520^GB222,160,4^FS
^FO600,560^A0N,90,90^FDAC^FS
^XZ
Result
A parcel-ready sticker: readable addresses, a scannable tracking code and a framed carrier mark. Move any block by changing its ^FO pair; nothing else shifts.
Article author: Arthur Isaev
| RFID | |
| ZPL | |
| ZPL course: 54 lessons | |
| ZPL FAQ | |
| RFID tools | |
| Label and sticker sizes | |
| ^BC — Code 128 Barcode |