PDF

fpdf2 – PDF creation library written in Python

fpdf2 is a PDF creation library written in Python.

It is designed to be fast, versatile and easy to learn, while keeping external dependencies to a minimum. fpdf2 is the successor to PyFPDF and supports Python 3.10 and later.

The library can create documents containing text, images, tables, links, barcodes, charts and graphics. It supports Unicode through TrueType font embedding, automatic page breaks, document outlines, annotations, encryption, digital signatures and basic HTML conversion.

This is free and open source software.

Key Features

  • Generate PDF documents entirely from Python.
  • Unicode support with TrueType font subset embedding.
  • Embed images with transparency and alpha channels.
  • Create tables with automatic page and line breaks.
  • Internal and external links.
  • Import basic SVG graphics and draw arbitrary paths.
  • Embed barcodes, charts, graphs, emojis and symbols.
  • Convert basic HTML content to PDF.
  • Document outlines and tables of contents.
  • Document encryption and digital signatures.
  • Annotations and file attachments.
  • Templating system for generating PDFs in batches.

Website: github.com/py-pdf/fpdf2
Support:
Developer: Olivier Plathey, Max, Lucas Cimon, Georg Mischler, Anderson Herzogenrath da Costa
License: GNU Lesser General Public License v3.0

fpdf2 is written in Python. Learn Python with our recommended free books and free tutorials.


Related Software

PDF Development Libraries
PDFBoxCreate, render, print, split, merge, alter, verify and extract text and metadata
TCPDFPHP class for generating PDF documents
PopplerLibrary for rendering PDF files, and examining or modifying their structure
PDFKitPDF document generation library for Node and the browser
pdfcpuPDF processing library
Apache FOPPrint formatter driven by XSL formatting objects
QPDFLibrary and programs that inspect and manipulate the structure of PDF files
PoDoFoParse PDF files and modify their contents into memory
OpenPDFLibrary for creating and editing PDF files; fork of iText
xhtml2pdfHTML to PDF converter using Python
libHaruLibrary for generating PDFs
CapyPDFFully color managed PDF generation library
pdf-libCreate and modify PDF documents in a JavaScript environment
PDFioPDF read/write library
PDFsharp.NET library for processing PDF files
JasperReportsReporting engine written in Java
CamlPDFOCaml library for reading, writing and modifying PDF files

Read our verdict in the software roundup.


Best Free and Open Source Software Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.

This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more.

Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted