receipt-print-hq / escpos-tools

Utilities to read ESC/POS print data
MIT License
200 stars 73 forks source link

Weird binary file, library wasn't able to give any output #50

Closed mahmoudaljan closed 6 years ago

mahmoudaljan commented 6 years ago

The captured a receipt's binary bellow: receipt.log does not seem to play nice with the library. The printer is Rongta-RP80 on windows

Printing the included sample bin file yeilded this :

20180730_012455

Thank you for your help.

mike42 commented 6 years ago

Thanks for attaching the file. You found an image command which I hadn't finished implementing yet, please pull the latest code and try again, looks good to me now (there is no text in this receipt, just pictures, see this blog post for how to recover text from this via OCR).

$ esc2html receipt.log > receipt.html

image

As for your print-out, that's just some test input to run through the command-line tools. It doesn't really matter whether you can print it (it will only work on Epson printers because of the image format used), the point is that esc2html can understand it :)