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 co
i guess this ESC/POS printer simulator will help you,
it works over network:
https://github.com/dacduong/escpos-printer-simulator
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/