Converting .pdf to .zpl

GotBatteries picture GotBatteries · Nov 26, 2015 · Viewed 15k times · Source

I need to convert .pdf -file to .zpl -label file for printing with zebra printers, but is this even possible?

The PDF comes in as a base64 encoded string, and somehow I need to output that as a .zpl -file.

I use PHP in my project, and I prefer the method in PHP, but basically any programming language is fine, as long as it gets the job done.

I was thinking about converting the PDF to image(which seems to be possible by quick googling), and then from image(PNG, JPG, etc.) to ZPL(which also seems to be ok by quick googling), but does anyone have any knowledge about this kind of operation or any insights before I start to do this? I'm on a tight schedule here, and I cannot afford any fruitless work.

Update 4.8.2016

I went the other way and created the ZPL from the scratch because it keeps our service faster than doing some conversions. So I don't have any more info on this than what the google already offers, if someone comes wondering about this same thing. PS. ZPL isn't that hard of a language. ;)

Answer