2 years ago
#69880
Hanzla Khalid
How to convert A4 size invoice to POS size invoice in Python?
I am working on a web app built in Flask that generates A4 size invoices(using reportlab)
, but now I am required to convert those invoices to POS invoices (which will print on thermal printer, like in the supermarkets). Also, A4 page has a fixed height but POS invoice should have a dynamic height according to the rows of data.
I have already tried adjusting the size values according to thermal paper but it just messes things up. I also tried exploring other options like borb
and escpos-python
but they do not appear to be good as reportlab
Is there any way to convert A4 size invoices to POS invoices? OR any way to generate POS invoices in python
using reportlab
?
I am using python 3.7.9
and macOS 12.1
PS: POS thermal paper has a width of 80mm
python
reportlab
invoice
thermal-printer
0 Answers
Your Answer