Have you ever needed to add page numbers to your Reportlab generated PDF but didn't know how? Well you've come to the right place. We're going to look at how to add page number in three different circumstances: How to add page numbers with just the canvas object How to add page numbers using the […]
This week I was trying to figure out how to make Reportlab do something I had never attempted before. Namely, I wanted to create about a half page's worth of static text positioned exactly and then have a table of line items that could potentially fill the rest of the page and continue for N […]
Have you ever wondered how to embed custom fonts in Reportlab? Or maybe you just want to switch fonts or change the font's color. Well in this tutorial, we'll take a look at all of these questions. You'll need to go out and download a copy of Reportlab as it isn't a part of the […]
The Reportlab library is a great way to generate PDFs in Python. Recently, I noticed that it has the ability to do barcodes. I had heard about it being able to generate QR codes, but I hadn't really dug under the covers to see what else it could do. In this tutorial, we'll take a […]
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 […]
I was recently asked to convert a few hundred images into PDF pages. A friend of mine draws comics and my brother wanted to be able to read them on a tablet. Alas, if you had a bunch of files named something like this: 'Jia_01.Jpg', 'Jia_02.Jpg', 'Jia_09.Jpg', 'Jia_10.Jpg', 'Jia_11.Jpg', 'Jia_101.Jpg' the Android tablet would reorder […]