Python PDF library

125,077

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.

Share:
125,077
enfix
Author by

enfix

Updated on November 22, 2020

Comments

  • enfix
    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
    octopusgrabbus almost 13 years
    From reading pyPdf's documentation, it appears to manipulate existing PDFs. Is there a Python library that will print/convert to PDF? Thanks.
  • monokrome
    monokrome over 12 years
    These libraries don't make PDFs. They just edit them.
  • Wonil
    Wonil over 11 years
    Maybe, this Q&A can help - stackoverflow.com/questions/1180115/…
  • Loïc
    Loïc almost 9 years
    Reportlab is really good. Another good one for simple tasks and for people who know about html is xhtml2pdf.