Python PDF library
Solution 1
The two that come to mind are:
Solution 2
Reportlab. There is an open source version, and a paid version which adds the Report Markup Language (an alternative method of defining your document).
Solution 3
I already have used Reportlab in one project.
Solution 4
There is also http://appyframework.org/pod.html which takes a LibreOffice or OpenOffice document as template and can generate pdf, rtf, odt ... To generate pdf it requires a headless OOo on some server. Documentation is concise but relatively complete. http://appyframework.org/podWritingTemplates.html If you need advice, the author is rather helpful.
enfix
Updated on November 22, 2020Comments
-
enfix over 3 years
What Python PDF libraries are there?
I need to make some PDF with many grids, and I'm looking for a library that allows to manage pages (multi-page). The library should calculate when the page is ended and then create the next page.
-
octopusgrabbus almost 13 yearsFrom reading pyPdf's documentation, it appears to manipulate existing PDFs. Is there a Python library that will print/convert to PDF? Thanks.
-
monokrome over 12 yearsThese libraries don't make PDFs. They just edit them.
-
Wonil over 11 yearsMaybe, this Q&A can help - stackoverflow.com/questions/1180115/…
-
Loïc almost 9 yearsReportlab is really good. Another good one for simple tasks and for people who know about html is xhtml2pdf.