将Postscript转换为Zebra

Nev*_*olt 5 open-source postscript converter zpl-ii zebra-printers

是否有可能将Postscript转换为Zebra?

我已经在他们的主页上看到Zebra打印机不兼容Postscript,但是想知道是否有一些开源代码可以将它从一个打印到另一个.

任何帮助将不胜感激.

Dim*_*y K 6

为了简化它,PostScript与PDF相同.:)它只是打印机(或PostScript(PDF)查看器)的命令列表,告诉他该怎么做.这是postscript命令的例子(来自维基百科),它打印'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
Run Code Online (Sandbox Code Playgroud)

正如你所看到的,这类似于"乌龟"绘制命令,但却达到了专业水平.

普通桌面打印机能够解释这组命令以打印您想要的任何内容.Zebra打印机不需要打印任何你想要的东西.他们只需打印简单的东西,如收据,条形码,标签.因此没有必要将更昂贵的芯片放入其中以支持PS.但是,所有Zebra打印机都可以打印IMAGE.(意思是图形位图,通常是单色图像).

因此,您的问题的解决方案听起来像这样:尽管无法将PostScript命令直接发送到Zebra打印机,但您始终可以将后脚本命令渲染到图像/位图(如Adobe PDF阅读器),然后将此图像转换为单色并使用任何Zebra或其他热敏打印机进行打印.