Lurker News

Comments (175) 49 threads

Show all comments

Showing thread 26 of 49

albert_e1 reply#
If we don't need the UX but need to call this functionality programmatically-- to generate PDF account statements / invoices, optionally after showing a preview as a web page -- is there a good open source solution already available that we can integrate into our app.
cuu5081 reply#
For Python there is Weasyprint: you prepare the invoice as an HTML document, and Weasyprint turns it into a PDF

https://weasyprint.org/

albert_e#
Thank you!

HTML Jinja templates seem to be fairly standard in this space.