简体   繁体   English

你能把 pdf 打印到斑马打印机吗

[英]Can you direct pdf print to a zebra printer

Is it possible to direct print a stored pdf via a zebra printer in Java?是否可以通过 Java 中的斑马打印机直接打印存储的 pdf? I can't find any mention of them being compatible with direct printing and I can't get it to print.我找不到任何关于它们与直接打印兼容的提及,我无法打印它。 Would I need to communicate directly via zpl?我需要通过 zpl 直接通信吗?

The zebra printer works fine when printed through Acrobat Reader, does Adobe Reader translate the PDF into zpl?斑马打印机通过 Acrobat Reader 打印时工作正常,Adobe Reader 是否将 PDF 转换为 zpl?

The zebra printer works fine when printed through Acrobat Reader, does Adobe Reader translate the PDF into zpl?斑马打印机通过 Acrobat Reader 打印时工作正常,Adobe Reader 是否将 PDF 转换为 zpl?

No. Adobe Reader prepares a document that the system's print service can consume.不会。Adobe Reader 会准备系统的打印服务可以使用的文档。 The print service then invokes the Zebra drivers, and those are what convert the document into the printer's native language.然后打印服务调用 Zebra 驱动程序,这些驱动程序将文档转换为打印机的本地语言。 This is how all print drivers work on all platforms, not just on Windows.这就是所有打印驱动程序在所有平台上的工作方式,而不仅仅是在 Windows 上。 CUPS does the same thing on Linux and MacOS. CUPS 在 Linux 和 MacOS 上做同样的事情。

Don't spend time building a PDF => image => ZPL translator.不要花时间构建 PDF => 图像 => ZPL 翻译器。 Your time will be better spent simply having your application speak to the OS native print service.让您的应用程序与操作系统本机打印服务对话会更好地利用您的时间。 I don't do Java, but a bit of time on my search engine of choice suggests that Java seems to support printing this way.我不使用 Java,但在我选择的搜索引擎上花费了一些时间,这表明 Java 似乎支持这种打印方式。

A better but slightly not so reusable way is to use ZPL or EPL (whatever your particular zebra printer supports).一种更好但不太可重用的方法是使用 ZPL 或 EPL(无论您的特定斑马打印机支持什么)。

By the way ZPL is Zebra programming language which is proprietary to Zebra.顺便说一句,ZPL 是 Zebra 专有的 Zebra 编程语言。 You can directly write the ZPL String on to the serial or parallel port without installing any Zebra driver (rather using Windows Generic Text Printer driver).您可以直接将 ZPL 字符串写入串行或并行端口,而无需安装任何 Zebra 驱动程序(而是使用 Windows Generic Text Printer 驱动程序)。 For example you can send following string directly to printer port (Serial, Parallel or Network)例如,您可以将以下字符串直接发送到打印机端口(串行、并行或网络)

^XA^FO40,40^AC2,20^FD^FS^FO40,60^BY2,2.8,10^BCN,100,Y,N,N^FD Barcode label ^FS^XZ

Hope it helps.希望能帮助到你。

If you have a printer with Link-OS you can purchase and install PDF Direct from Zebra on the printer firmware.如果您有一台带有 Link-OS 的打印机,您可以从 Zebra 购买 PDF Direct 并将其安装在打印机固件上。 You can then send a pdf directly to the printer.然后,您可以将 pdf 直接发送到打印机。 We do this by connecting to port 9100 and sending the PDF.我们通过连接到端口 9100 并发送 PDF 来做到这一点。

https://www.zebra.com/us/en/products/software/barcode-printers/link-os/pdf-virtual-device.html https://www.zebra.com/us/en/products/software/barcode-printers/link-os/pdf-virtual-device.html

To complete Justin answer, Link_OS printers addon PDF-direct is free for over the year.为了完成贾斯汀的回答,Link_OS 打印机插件 PDF-direct 全年免费。 Just update to latest printer firmware, and same way upload PDF-direct addon to printer.只需更新到最新的打印机固件,并以同样的方式将 PDF 直接插件上传到打印机。 Then pdf printing with generic text driver just working.然后使用通用文本驱动程序进行 pdf 打印即可。 Also tested on value series ZD220 ans ZD230 printers.还在价值系列 ZD220 和 ZD230 打印机上进行了测试。

You can print a PDF to a Zebra printer using the Mobi Print Utility for android and iOS.您可以使用适用于 Android 和 iOS 的 Mobi Print Utility 将 PDF 打印到 Zebra 打印机。 It can print bluetooth or wifi.它可以打印蓝牙或wifi。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM