问题
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