5

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.

Neverbolt
  • 65
  • 6

1 Answers1

6

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.

Dimitry K
  • 2,236
  • 1
  • 28
  • 37
  • If I correctly understand your answer, I could design my label in a bitmap just send that to the Zebra and it'll render well without learning yet another language? – VH-NZZ Sep 11 '14 at 17:12
  • yes you can. The printer's EPL language supports `GW` command which allows you to write monochrome images (`PCX` format) to the label. If you're planning to do this programmatically. – Dimitry K Sep 11 '14 at 17:22
  • 1
    And that's without any loss in resolution, I presume? – VH-NZZ Sep 11 '14 at 22:02
  • If you take LP2824 https://www.zebra.com/us/en/products-services/printers/printer-type/desktop/2824-plus-series.html#mainpartabscontainer=detailed-specs as example, it has maximum resolution 203DPI and max print width is 2.2inch. Which means maximum width is 2.2*203=446 pixels. Also zebra can print only in _monochrome_ (not grayscale), so you will have to _dither_ your image, check the bottom of http://32by32.com/read-me/ for examples of dithering. So you are limited to max width 446px and you will loose quality when dithering. If you need software for dithering XnView can dither. – Dimitry K Sep 15 '14 at 21:13