Virtual ESC POS printer

▼魔方 西西 提交于 2019-12-08 03:30:46

问题


I searched little bit for emulation of ESC/POS printer, but didn't found any thing more, then data parsers like this.

In few words, I have Linux, I have device connected to my PC via UART/RS-232 port. I need some soft, that will listen to specific COM port, and visualize data sent to be printed to this port (in example saves it as PDF).


回答1:


I don't think there is an out of box solution, but if you can capture the data (and it is a simple enough subset of esc/pos) you could then feed it to a tool like esc2html + wkhtmltopdf.

https://github.com/receipt-print-hq/escpos-tools

https://wkhtmltopdf.org/



来源:https://stackoverflow.com/questions/55398308/virtual-esc-pos-printer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!