Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert Postscript to Zebra

Is it possible to convert Postscript to Zebra?

I already read on their homepage that Zebra printers are not Postscript compatible, but wondered if there is some piece of open source code that could pass that from one to another.

Any help would be greatly appreciated.

like image 256
Neverbolt Avatar asked Jul 09 '14 12:07

Neverbolt


People also ask

Can you send a PostScript file to printer?

Choose Start > Programs > MS-DOS Prompt (Windows 95 or Windows 98) or Start > Programs > Command Prompt (Windows NT or Windows 2000). To send a PostScript file or a non-PostScript printer file to a network printer, capture the network printer as a port device, and then copy the file to that port as a local printer.

What is Zebra format?

A ZPL file is the printer format for Zebra Printers. It is a small file with markup telling the printer how to visualize a label.

Is PostScript or PCL better?

The overarching and most obvious benefit of PostScript is that it produces better quality and detailing than PCL. Across the board, you'll find graphical objects printed though PostScript compatible printers to be more detailed and sharper than the same objects printed through other PDLs.


1 Answers

To simplify it, PostScript is same as PDF. :) It is just a list of commands to the printer (or PostScript (PDF) viewer), telling him what to do. Here is example of postscript commands (from wikipedia), which prints 'Hello World':

%!PS
/Courier             % name the desired font
20 selectfont        % choose the size in points and establish 
                     % the font as the current one
72 500 moveto        % position the current point at 
                     % coordinates 72, 500 (the origin is at the 
                     % lower-left corner of the page)
(Hello world!) show  % stroke the text in parentheses
showpage             % print all on the page

As you can see this is something similar to a "turtle" draw commands, but taken to a professional level.

Normal desktop printers are able to interpret this set of commands to print whatever you want. Wherea Zebra printers do NOT need to print whatever you want. They just need to print something simple like receipts, barcodes, labels. Thus there was no point to put more expensive chips into them which would support PS. However all of Zebra printers can print IMAGE. (Meaning graphical bitmap, usually a monochrome image).

So the solution to your question sounds like this: Despite it is NOT possible to send directly PostScript commands to Zebra printer, you can always render your post-script command into image/bitmap (like Adobe PDF reader does) and then convert this image to monochrome and print it using any Zebra or other thermal printer.

like image 171
Dimitry K Avatar answered Sep 22 '22 02:09

Dimitry K