Converting ZPL print stream into a PDF file
Asked Answered
G

2

11

Is it possible to convert a ZPL print stream into a PDF file? If so, how can this be done?

Garrettgarrick answered 10/12, 2013 at 13:42 Comment(0)
B
15

You can use the Labelary web service. Normally it would give you a PNG image:

wget "http://api.labelary.com/v1/printers/8dpmm/labels/4x6/0/^xa^cfa,50^fo100,100^fdHello World^fs^xz" -O label.png

But it will give you a PDF file if you send the right Accept header:

wget "http://api.labelary.com/v1/printers/8dpmm/labels/4x6/0/^xa^cfa,50^fo100,100^fdHello World^fs^xz" --header="Accept: application/pdf" -O label.pdf
Bulletproof answered 24/8, 2014 at 22:18 Comment(0)
V
2

The only way to do it is to save the ZPL preview as an image and then convert the image to a pdf.

See this answer for reference.

Veator answered 10/12, 2013 at 18:31 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.