windows 模拟 Zebra 打印机

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/8540468/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 09:01:59  来源:igfitidea点击:

Emulate Zebra printer

windowsemulationzebra-printerszpl

提问by Pierre Henry

Possible Duplicate:
Print preview ZPL II commands using .NET WinForm before sending it to Zebra printer

可能的重复:
在将 ZPL II 命令发送到 Zebra 打印机之前使用 .NET WinForm 打印预览 ZPL II 命令

I am working on a Java app that prints tickets to a Zebra printer.

我正在开发将票证打印到 Zebra 打印机的 Java 应用程序。

The problem is that I am working remotely and don't have access to the Zebra printer (or any other printer actually).

问题是我正在远程工作并且无法访问 Zebra 打印机(或实际上任何其他打印机)。

I would like to know if there is a way to emulate the Zebra printer so that I can visualize the result of the print jobs generated by my app (to PDF, bitmap image etc.).

我想知道是否有一种方法可以模拟 Zebra 打印机,以便我可以将应用程序生成的打印作业的结果可视化(PDF、位图图像等)。

As I understand (I am fairly new to this) Zebra printers use ZPL commands.

据我了解(我对此很陌生)Zebra 打印机使用 ZPL 命令。

Is there any software printer emulator for Windows (7) that accepts ZPL commands and outputs PDF/bitmap/... ?

是否有任何适用于 Windows (7) 的软件打印机模拟器接受 ZPL 命令并输出 PDF/位图/...?

采纳答案by andyknas

Take a look at ZPLViewer- it works relatively well for rendering simple ZPL code but seems to fail on anything complex.

看看ZPLViewer- 它在渲染简单的 ZPL 代码时效果相对较好,但在任何复杂的情况下似乎都失败了。

Best bet is just to purchase a printer. You can get a ZP-450 for $200. Get one with Ethernet ($100 more) and you can use the printer admin page to upload ZPL and render on-screen so you don't have to spew labels.

最好的办法就是购买一台打印机。您可以花 200 美元购买 ZP-450。使用以太网获得一个(多 100 美元),您可以使用打印机管理页面上传 ZPL 并在屏幕上呈现,这样您就不必喷出标签。

回答by Ethan

Here is a link to software that Zebra created: ZebraDesigner. It does not actually visualizeZPL or take ZPL as input. But it can help you design your ticket and then export it to ZPL for further processing.

这是 Zebra 创建的软件的链接:ZebraDesigner。它实际上并不可视化ZPL 或将 ZPL 作为输入。但它可以帮助您设计票证,然后将其导出到 ZPL 进行进一步处理。

回答by dpavlin

I wrote https://github.com/dpavlin/Printer-Zebraa few days ago which converts ZPL ~DG(download graphics) commands and converts it back to PBM image file.

几天前我写了https://github.com/dpavlin/Printer-Zebra转换 ZPL ~DG(下载图形)命令并将其转换回 PBM 图像文件

This is not full ZPL interpreter (since it only implements one command :-) but does work for cups generated ZPL files which is handy to find out if your printer output includes anti-aliased barcodes which are always bad...

这不是完整的 ZPL 解释器(因为它只执行一个命令 :-)但确实适用于杯子生成的 ZPL 文件,这有助于确定您的打印机输出是否包含总是不好的抗锯齿条码...