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 very well. In this chapter, we will look at a variety of different packages that you can use to […]
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 convert them to other formats that ReportLab can use. The official website for svglib is on Github. The svglib package will work on Linux, […]
February 25, 2018 by
Mike 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 too! I currently have 7 chapters done with number 8 nearing completion. There are over 170 pages […]
February 13, 2018 by
Mike 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 Note that the format of this sample is not quite right […]
February 12, 2018 by
Mike I really like coming up with fun covers for my books. I also like to find new artists for each book so that they all end up looking unique. I do plan to re-use one or two artists at some point though. Anyway, for the ReportLab book I happened to stumble across Therese Larsson's website and I really […]
The ReportLab toolkit provides multiple ways for you to generate text on your PDFs. The most popular examples that I have seen are using canvas methods or using PLATYPUS. The canvas method that you will likely see the most is drawString. Here is an example: from reportlab.pdfgen import canvas c = canvas.Canvas("hello.pdf") c.drawString(100, 100, "Welcome […]