[Django]-Django β€” printing lots of documents?

5πŸ‘

βœ…

I would advise using wkhtmltopdf for this task. You can then create the required letters from one long html with pagebreaks or separately and print them as you regularly print PDF’s.

http://code.google.com/p/wkhtmltopdf/

As wk stands for WebKit it will print exceptionally good quality PDF’s. It’s a commandline tool that you can just download and run. Small tutorial is here for you.

http://shivul.posterous.com/django-create-dynamic-pdfs-using-wkhtmltopdf

ReportLab is also a good option. But myself I don’t want to create raw pdf syntax and Pisa the html library for ReportLab is not really that good. wkhtmltopdf is much better and easier to use.

πŸ‘€madisvain

1πŸ‘

I’d suggest using something like Reportlab to create the whole thing as a single PDF document that you can send to the printer in one go.

See the docs on generating PDFs from Django.

Leave a comment