RWAP / PrinterToPDF

Project for converting captured printer data files to PDF format
GNU General Public License v3.0
85 stars 19 forks source link

Support for ESC/P2 barcode? #39

Open azlinrahim opened 1 year ago

azlinrahim commented 1 year ago

Is there any plan to include the ESC/P2 barcode support in the near future? Wouldn't mind contributing some time to work on it if possible, but I'm not sure where to start.

RWAP commented 1 year ago

I don't have any plans at the moment to add this (as of yet, none of my customers need it).

However, how it works is set out in the ESC/P2 programming reference guide (pages 315 to 329): https://files.support.epson.com/pdf/general/escp2ref.pdf

It would take quite a bit of figuring out how to work this, as it is not straightforward. A good starting point would be to base it on the ESC . command (graphics printing); but it will need quite a few read-throughs to work out what they do with the information.

The best way I have found for anything like this is to try and write a routine in BASIC which can emulate the printing - much easier to test and adjust as required, until you get a good understanding of how it works.