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 | |
|---|---|
| PDFBox | Create, render, print, split, merge, alter, verify and extract text and metadata |
| TCPDF | PHP class for generating PDF documents |
| PyMuPDF | Fast Python toolkit for document extraction and editing |
| Poppler | Library for rendering PDF files, and examining or modifying their structure |
| PDFKit | PDF document generation library for Node and the browser |
| jsPDF | JavaScript toolkit for creating documents in web applications |
| pdfcpu | PDF processing library |
| Apache FOP | Print formatter driven by XSL formatting objects |
| WeasyPrint | Rendering engine that turns HTML and CSS into print-ready documents |
| pypdf | Pure Python toolkit for reading, splitting and merging documents |
| QPDF | Library and programs that inspect and manipulate the structure of PDF files |
| PoDoFo | Parse PDF files and modify their contents into memory |
| OpenPDF | Library for creating and editing PDF files; fork of iText |
| xhtml2pdf | HTML to PDF converter using Python |
| Dompdf | PHP tool that converts HTML and CSS into formatted documents |
| libHaru | Library for generating PDFs |
| pikepdf | Python toolkit for inspecting and modifying document files |
| PdfPig | .NET toolkit for extracting text, words and document content |
| gopdf | Go toolkit for generating documents with text, images and graphics |
| CapyPDF | Fully color managed PDF generation library |
| pdf-lib | Create and modify PDF documents in a JavaScript environment |
| PDFio | PDF read/write library |
| fpdf2 | Python toolkit for creating richly formatted documents |
| PDFsharp | .NET library for processing PDF files |
| JasperReports | Reporting engine written in Java |
| CamlPDF | OCaml library for reading, writing and modifying PDF files |
Read our verdict in the software roundup.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.