5

是否可以将 Postscript 转换为 Zebra?

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

任何帮助将不胜感激。

4

1 回答 1

6

为简化起见,PostScript 与 PDF 相同。:) 它只是打印机(或 PostScript (PDF) 查看器)的命令列表,告诉他该做什么。下面是 postscript 命令的示例(来自wikipedia),它打印“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

如您所见,这类似于“乌龟”绘图命令,但已达到专业水平。

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

因此,您的问题的解决方案听起来像这样:尽管不可能将 PostScript 命令直接发送到 Zebra 打印机,但您始终可以将您的 postScript 命令渲染为图像/位图(就像 Adob​​e PDF 阅读器一样),然后将此图像转换为单色并使用任何 Zebra 或其他热敏打印机打印。

于 2014-07-10T08:17:58.703 回答