Templates pdf for invoices with ReportLab
Asked Answered
P

1

9

I'm wondering myself if there's any template code for make invoices output in pdf with reportlab, I'm developing in Django a platform sales and I need to output some data with a invoice look, I tried further but I didn't find anything, anyone know some resources? I don't care if I need to use another library, of course, for python.

Regards!

Edit:

Finally I found a solution with this package: https://pypi.python.org/pypi/django-invoice if anyone is interested.

Regards!

Phantasy answered 19/7, 2013 at 12:12 Comment(0)
M
6

If you are familiar with HTML/CSS, you can first generate an HTML invoice using django's template, and then use the xhtml2pdf package to convert it into PDF format.

The xhtml2pdf is based on top of Reportlab, html5lib and pyPdf. I've used it before, and it solved my problem.

Mallett answered 9/4, 2014 at 3:4 Comment(1)
Take a look at this project, uses reportlab: github.com/radzhome/fedex-commercial-invoiceBowen

© 2022 - 2024 — McMap. All rights reserved.