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 to figure out tables. In this article, I will attempt to show you the basics of inserting tables into Reportlab generated PDFs. (more…)
Entries tagged with “Python PDF Series”.
Tue 21 Sep 2010
Reportlab Tables – Creating Tables in PDFs with Python
Posted by Mike under Cross-Platform, Python
[2] Comments
Sat 15 May 2010
Manipulating PDFs with Python and pyPdf
Posted by Mike under Cross-Platform, Python, wxPython
[4] Comments
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 merge a couple of PDFs. (more…)
Mon 8 Mar 2010
A Simple Step-by-Step Reportlab Tutorial
Posted by Mike under Cross-Platform, Python
[19] Comments
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 that standard library, so you’ll need to download it if you want to run the examples in this tutorial. There will also be at least one example of how to put an image into a PDF, which means you’ll also need the Python Imaging Library (PIL). As I understand it, Reportlab is compatible with Python 2.x, IronPython and Jython. They are currently working on a port for Python 3.x (or will be soon). (more…)