lukevp / ESC-POS-.NET

Efficient, Easy to Use Thermal Printing & POS (Windows/Linux/OSX, WiFi/BT/USB/Ethernet)
MIT License
503 stars 166 forks source link

ESCPOS parser to output PDF #188

Open igorocampos opened 1 year ago

igorocampos commented 1 year ago

@NewbridgeGareth I'm not aware of any ESCPOS parser that can output PDF or any other format. I've been interested in building something like this (to provide print previews, etc.) Can you open up a separate issue that we could discuss about this and maybe document any links you find to anything existing that does this? This issue isn't really related to this topic.

Originally posted by @lukevp in https://github.com/lukevp/ESC-POS-.NET/issues/174#issuecomment-1211439605

igorocampos commented 1 year ago

Hey guys, I believe such a parser is doable, we would need some adjustments though, like how many columns per line the current printer uses (I know there's another issue that talks about this as a property, I'm sorry I'm not linking it here). PDF output might be easiest but then we would probably need to add a 3rd party library to compose the PDF file, which inherits its dependencies and might not be as OS compatible as ESCPOS-.NET currently is. Just thinking out loud here, but what if a new library is created just for that parsing?