在 Chrome 浏览器上删除 NPAPI 后替代 Jzebra/QZ Java Raw Print Plugin [英] Alternative to Jzebra/QZ Java Raw Print Plugin after NPAPI being dropped on Chrome Browser
问题描述
我们都知道 NPAPI 将在几个月内从 Chrome 中完全删除.
We all know that NPAPI will be completely removed from Chrome in a few months.
Jzebra/QZ Java 插件的替代品是什么,使原始打印(发送原始 ESC/P 命令)到 POS 打印机?
What would be an alternative to the Jzebra/QZ Java plugin that makes raw printing (sending raw ESC/P commands) to POS printers?
是否有 Chrome API(HTML5 和 Javascript)可以替代浏览器和本地安装的 POS 打印机之间的 USB 或以太网通信?
Is there a Chrome API (HTML5 and Javascript) that will be able to replace the communication between the browser and the locally installed POS printers in USB or Ethernet?
推荐答案
是否有 Chrome API(HTML5 和 Javascript)可以替代浏览器和本地安装的 POS 打印机之间的 USB 或以太网通信?
Is there a Chrome API (HTML5 and Javascript) that will be able to replace the communication between the browser and the locally installed POS printers in USB or Ethernet?
更新:存在适用于 USB 设备的纯 HTML5 解决方案,但目前很难找到示例且浏览器采用速度缓慢:
Update: A pure HTML5 solution exists for USB devices, but examples are currently hard to find and browser adoption has been slow:
- WebUSB仅限 USB 设备,选择浏览器.
- WebUSB USB devices only, select browsers.
关于 HTML5 和 JavaScript,由于删除了 NPAPI,解决方案往往涉及 WebSocket 到 localhost,或支持云的打印机.
In regards to HTML5 and JavaScript, since the removal of NPAPI, the solution tends to involve WebSocket to localhost, or cloud-enabled printers.
此 HTTP/WebSockets 设计用于:
This HTTP/WebSockets design is used by:
- Zebra 链接-操作系统和云连接(用于标签打印等)
- Epson ePOS-Device(用于收据、显示器、条码扫描器)
- Dymo JavaScript Framework 2.0(用于标签打印等)
- PrintNode
- Google 云打印(计划于 2020 年 12 月退休)
- Neodynamic TLClient Print(基于 .NET 的热敏打印机)
- QZ Tray 软件(JZebra/QZ-Print"的继承者、标签、收据、任何原始内容、PDF、HTML、USB 秤、USB 条码阅读器、串行设备)
- Zebra Link-OS and Cloud Connect (for label printing, etc)
- Epson ePOS-Device (for receipts, display, barcode scanner)
- Dymo JavaScript Framework 2.0 (for label printing, etc)
- PrintNode
- Google Cloud Print (Slated for retirement Dec 2020)
- Neodynamic TLClient Print (.NET-based for thermal printers)
- QZ Tray software (the successor to "JZebra/QZ-Print", labels, receipts, anything raw, PDFs, HTML, USB Scales, USB barcode readers, serial devices)
关于销售点特定的打印,我一直无法找到满足这些需求的现成解决方案(纯 HTML5 和 JavaScript,广泛采用),因此桌面安装的中间件或服务器-侧中间件目前是实现您所描述的内容的方式.
In regards to Point-Of-Sale specific printing, I have been unable to locate a ready solution that meets these needs (pure HTML5 and JavaScript, widely adopted), so either a Desktop-installed middle-ware or a server-side middle-ware is currently the way to achieve what you are describing.
完全免责声明,我们是 QZ Tray 的作者.
Full disclaimer, we're the authors of QZ Tray.
这篇关于在 Chrome 浏览器上删除 NPAPI 后替代 Jzebra/QZ Java Raw Print Plugin的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!