Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python PDF library [closed]

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.

like image 961
enfix Avatar asked Jun 20 '11 15:06

enfix


People also ask

How do you close a PDF in Python?

open() to open files and f. close() to close it.

Can Python work with PDF files?

You can work with a preexisting PDF in Python by using the PyPDF2 package. PyPDF2 is a pure-Python package that you can use for many different types of PDF operations.


2 Answers

The two that come to mind are:

  • pyPdf2
  • PDFMiner
like image 61
Bryan Avatar answered Oct 09 '22 02:10

Bryan


Reportlab. There is an open source version, and a paid version which adds the Report Markup Language (an alternative method of defining your document).

like image 36
Rob Cowie Avatar answered Oct 09 '22 04:10

Rob Cowie