Can you direct pdf print to a zebra printer

user2982867 picture user2982867 · Jul 22, 2014 · Viewed 22.4k times · Source

Is it possible to direct print a stored pdf via a zebra printer in Java? I can't find any mention of them being compatible with direct printing and I can't get it to print. Would I need to communicate directly via zpl?

The zebra printer works fine when printed through Acrobat Reader, does Adobe Reader translate the PDF into zpl?

Answer

Charles picture Charles · Jul 27, 2014

The zebra printer works fine when printed through Acrobat Reader, does Adobe Reader translate the PDF into zpl?

No. Adobe Reader prepares a document that the system's print service can consume. The print service then invokes the Zebra drivers, and those are what convert the document into the printer's native language. This is how all print drivers work on all platforms, not just on Windows. CUPS does the same thing on Linux and MacOS.

Don't spend time building a PDF => image => ZPL translator. Your time will be better spent simply having your application speak to the OS native print service. I don't do Java, but a bit of time on my search engine of choice suggests that Java seems to support printing this way.