

For instance, you might work for a bank that wants to produce end-of-month account statements for each of its 100,000 customers. When I talk about creating PDFs programmtically, I’m thinking of the situation where one wants to create a lot of PDFs that follow a template. BackgroundĬreating PDFs programmatically is a task most Python programmers encounter at least once. I’ll compare and contrast the two in another blog post. In this post I just want to describe the technique I’m advocating.

This technique offers some unique benefits, and in some common use cases-most importantly, perhaps in your case-it can be much more efficient than the alternative. In the talk and in this series, I advocate a technique for creating PDFs that uses LibreOffice (or OpenOffice) to do most of the hard work, and I contrast that to the common solution of using ReportLab (or a library like it). It’s the first of a series on this subject which is a bit too big for just one blog post. This post is a supplement to a talk I’m giving at PyOhio about using Python to create PDFs “the lazy way”.
