I'm always on the lookout for Python PDF libraries and I happened to stumble across pdfrw the other day. It looks like a replacement to pyPDF in that it can read and write PDFs, join PDFs and can use Reportlab for concatenation and watermarking, among other things. The project also appears slightly dead in that […]
Recently I needed the ability to use Reportlab's flowables, but place them in fixed locations. Some of you are probably wondering why I would want to do that. The nice thing about flowables, like the Paragraph, is that they're easily styled. If I could bold something or center something AND put it in a fixed […]
There are several cool ways to create PDFs with Python. In this article we will be focusing on a cool little tool called rst2pdf, which takes a text file that contains Restructured Text and converts it to a PDF. The rst2pdf package requires Reportlab to function. This won't be a tutorial on Restructured Text, although […]
September 21, 2010 by
Mike Back in March of this year, I wrote a simple tutorial on Reportlab, a handy 3rd party Python package that allows the developer to create PDFs programmatically. Recently, I received a request to cover how to do tables in Reportlab. Since my Reportlab article is so popular, I figured it was probably worth the trouble […]
There's a handy 3rd party module called pyPdf out there that you can use to merge PDFs documents together, rotate pages, split and crop pages, and decrypt/encrypt PDF documents. In this article, we'll take a look at a few of these functions and then create a simple GUI with wxPython that will allow us to […]
The subtitle for this article could easily be "How To Create PDFs with Python", but WordPress doesn't support that. Anyway, the premier PDF library in Python is Reportlab. It is not distributed with the standard library, so you'll need to download it if you want to run the examples in this tutorial. There will also […]