Today, I am happy to announce a new version 2.2.0 of fpdf2 !
During the last few months, I contributed a few improvements to
David Ankin fork of
the user-friendly Python library to generate PDFs:
from fpdf import FPDF
document = FPDF()
document.text(x=50, y=50, txt="Hello world!")
As the original project was not maintained anymore, the two of us teamed up in order to merge several contributors' Pull Requests submitted to the original project, and improve its documentation and overall code quality.
On my part, I added a GitHub Actions pipeline
with as code prettifier (
black) and a linter (
removed some dead code, added several unit tests, and improved the global performances x100
by using a
byterarray for the internal buffer and also for image compression.
For more details, you can check the releases CHANGELOG.
There are still many improvements to be done of course. We'd be happy to here about your feedbacks & suggestions!
One of my main motivations behind this work is a PDF video game I'm working on and I'm eager to present it here soon 😉