A Simple Step-by-Step Reportlab Tutorial
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...
View ArticleReportlab Tables – Creating Tables in PDFs with Python
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...
View ArticleTop Ten Articles of 2010
A lot of websites are doing year-end retrospectives this week, so I thought you might find it interesting to know which articles on this blog were the most popular this year. Below you will find links...
View ArticleReportlab: Converting Hundreds of Images Into PDFs
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...
View ArticleReportlab: Mixing Fixed Content and Flowables
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...
View ArticleReportlab – How to Create Barcodes in Your PDFs with Python
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...
View ArticleReportlab – All About Fonts
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....
View ArticleReportlab: How to Combine Static Content and Multipage Tables
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...
View ArticleReportlab: How to Add Page Numbers
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...
View ArticleReportlab: How to Create Landscape Pages
The other day I had an interesting task I needed to complete with Reportlab. I needed to create a PDF in landscape orientation that had to be rotated 90 degrees when I saved it. To make it easier to...
View ArticleReportlab: How to Create Custom Flowables
Reportlab is a very flexible PDF creation package for Python. You can layout your documents using absolute positioning or by using Flowable objects, such as a Paragraph, a Table or Frame. You can even...
View ArticleReportlab for Python 3 is here!
Reportlab recently released version 3.1 which now fully supports Python 3 and Python 2.7. They had actually released a Python 3 compatible version about a month or so ago, but this one sounds like...
View ArticleReportlab – How to Add Charts / Graphs
Reportlab is really nice tool for creating PDFs in Python. A little known fact is that they now support adding charts or graphs to your PDF. Previously if you wanted that functionality, you would have...
View ArticleReportLab Book Chapter Sampler
I thought it would be fun to create a sample of the book so you can get an idea of what the book will be like. So I created a PDF that contains the first 3 chapters of the book for you. Download Sample...
View ArticleReportLab Book Kickstarter’s – 2 Days Left
There is only a little over 2 days left for my ReportLab book Kickstarter. This is your only chance to purchase a signed copy of the book and it’s also probably the cheapest way of getting the eBooks...
View ArticleAdding SVGs to PDFs with Python and ReportLab
ReportLab has native support for generating SVGs, but not for embedding SVGs in their PDFs. Fortunately, Dinu Gherman created the svglib package, a pure-Python package that can read SVG files and...
View ArticleExporting Data from PDFs with Python
There are many times where you will want to extract data from a PDF and export it in a different format using Python. Unfortunately, there aren’t a lot of Python packages that do the extraction part...
View ArticleFilling PDF Forms with Python
Fillable forms have been a part of Adobe’s PDF format for years. One of the most famous examples of fillable forms in the United States are documents from the Internal Revenue Service. There are lots...
View ArticleCreating Interactive PDF Forms in ReportLab with Python
The ReportLab toolkit allows you to create interactive fillable forms. The PDF standard actually has a fairly rich set of interactive elements. ReportLab doesn’t support all of these elements, but it...
View ArticleReportLab: PDF Publishing with Python is now Available!
My latest book, ReportLab: PDF Processing with Python is now available for purchase. ReportLab has been around since the year 2000 and has remained the primary package that Python developers use for...
View Article