Python PDF tools

by admin on July 23, 2009 · 0 comments

I’ve been using iText – the Java PDF library – a lot recently and seeing as I’ve been getting into Python I wanted something similar to iText for that. I managed to dig these up:

ReportLab -  A PDF creation tool in the iText mould but the ReportLab site hasn’t been updated since 2005 so looks like this is a dead project.

PyPDF -  A simple library that lets you change PDF metadata (author, title, etc) and to crop, join or split PDF files. PyPDF doesn’t have the ability to modify a page’s content.

HTML2PDF -  A the name suggests, this takes some HTML input and creates a PDF from it. Looks good.

Another option may be to compile iText using the GNU Java compiler and then to create a Python wrapper for it. I’ve never used GCJ so I don’t know if it would even compile iText cleanly.

Previous post:

Next post: