Label Formats and Sizes
ShipEngine provides labels in three formats:
Label Format | Description |
---|---|
pdf | Adobe PDF Format |
png | A PNG (portable network graphics) image file |
zpl | Zebra Programming Language format, which is useful for printing with a Zebra Printer |
By default, all labels are 4x6
(4 inches x 6 inches). You can optionally specify label_layout: "letter"
to create
labels in US Letter size (8.5 inches x 11 inches).
Example
The following example demonstrates setting the label_layout when creating a label.
Notice that the label_download object in the response includes links to download the label as pdf, png, and/or zpl. There is also an href field, which exists for backward compatibility purposes. We recommend that you use the other fields instead.