gpt4 book ai didi

open-source - 将 Postscript 转换为 Zebra

转载 作者:行者123 更新时间:2023-12-04 18:41:39 25 4
gpt4 key购买 nike

是否可以将 Postscript 转换为 Zebra?

我已经阅读了他们的homepage Zebra 打印机不兼容 Postscript,但想知道是否有一些开源代码可以将它从一个传递到另一个。

任何帮助将不胜感激。

最佳答案

为简化起见,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 或其他热敏打印机进行打印打印机。

关于open-source - 将 Postscript 转换为 Zebra,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24653766/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com