user2982867
user2982867

Reputation: 81

Can you direct pdf print to a zebra printer

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?

Upvotes: 8

Views: 43414

Answers (6)

amber
amber

Reputation: 11

To complete Justin answer, Link_OS printers addon PDF-direct is free for over the year. Just update to latest printer firmware, and same way upload PDF-direct addon to printer. Then pdf printing with generic text driver just working. Also tested on value series ZD220 ans ZD230 printers.

Upvotes: 1

David M
David M

Reputation: 1

  • Download Zebra setup printer on ios :
    https://apps.apple.com/us/app/zebra-printer-setup-utility/id1454308745.

  • Then go to Device Language, and choose PDF.

  • Then a simple post request like :

    const pdfData = {
          uri: localUrl, // <- your file
          type: 'application/pdf',
          name: 'file_name',
      }
    
      const data = new FormData()
      data.append('pdf', pdfData)
    
      fetch(printerUrl, { // <- "http://${IP}:9100/pstprnt/"
          method: 'POST',
          headers: {
              'Content-Type': 'multipart/form-data',
          },
          body: pdfData,
      })
    

Upvotes: 0

Justin Bennett
Justin Bennett

Reputation: 31

If you have a printer with Link-OS you can purchase and install PDF Direct from Zebra on the printer firmware. You can then send a pdf directly to the printer. We do this by connecting to port 9100 and sending the PDF.

https://www.zebra.com/us/en/products/software/barcode-printers/link-os/pdf-virtual-device.html

Upvotes: 2

Printer Guru
Printer Guru

Reputation: 1

You can print a PDF to a Zebra printer using the Mobi Print Utility for android and iOS. It can print bluetooth or wifi.

Upvotes: -1

umairnaqvi
umairnaqvi

Reputation: 57

A better but slightly not so reusable way is to use ZPL or EPL (whatever your particular zebra printer supports).

By the way ZPL is Zebra programming language which is proprietary to Zebra. You can directly write the ZPL String on to the serial or parallel port without installing any Zebra driver (rather using Windows Generic Text Printer driver). For example you can send following string directly to printer port (Serial, Parallel or Network)

^XA^FO40,40^AC2,20^FD^FS^FO40,60^BY2,2.8,10^BCN,100,Y,N,N^FD Barcode label ^FS^XZ

Hope it helps.

Upvotes: 2

Charles
Charles

Reputation: 51411

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.

Upvotes: 16

Related Questions