ZPL PRN to preview as Image or PDF

// Expert user has replied.
P Paras Buda 1 year ago
1047 5 3

I have a prn file of zpl code that give me the label but there is no any way to display the preview of that label to the user. I want to know how can i achive that or is there is any other way to achive that. One to get that is by the use of third party site like http://labelary.com/viewer.html which does what i actually need. but there limitations on this. Is there is any service provided by zebra itself. My app is build in MERN stack.

Please Register or Login to post a reply

5 Replies

S Steven Si

Unfortunately, Zebra does offer any ZPL preview tools or services. You would have to use the http://labelary.com or use a physical printer to preview or print.

P Paras Buda

As you said this can be achieved by using physical printer. so how can i do that in my web app. can you provide me the sample code from which i will be more clear. 

S Steven Si

There is a mini webserver on the printer, which is accessible via the printer's IP addresses, i.e., http://<printerIPAddress>/index.html. Click on the Directory Listing to open a new page. There is the Create New Script button at the bottom of the page. Click on this button. Then click on the Edit button to get to the ZPL script editing window. This is where you copy & paste, or edit your ZPL script and preview the label.

P Paras Buda

How to connect to the web server of the printer if the printer is connected via usb. And is there is any endpoint on which if I send the zpl command I get the preview of that label and can I convert that preview into pdf.

S Steven Si

The mini webserver on the printer won't be available if the printer is not on the network. The USB connection only won't work for the mini webserver. As said before, it's a preview on the printer. It doesn't return you an image or PDF.

CONTACT
Can’t find what you’re looking for?