Metadata-Version: 2.1 Name: fpdf2 Version: 2.4.6 Summary: Simple PDF generation for Python Home-page: https://pyfpdf.github.io/fpdf2/ Author: Olivier PLATHEY ported by Max Author-email: maxpat78@yahoo.it Maintainer: David Ankin Maintainer-email: daveankin@gmail.com License: LGPLv3+ Download-URL: https://github.com/PyFPDF/fpdf2/tarball/2.4.6 Project-URL: Documentation, https://pyfpdf.github.io/fpdf2/ Project-URL: Code, https://github.com/PyFPDF/fpdf2 Project-URL: Issue tracker, https://github.com/PyFPDF/fpdf2/issues Keywords: pdf,unicode,png,jpg,ttf,barcode Platform: UNKNOWN Classifier: Development Status :: 5 - Production/Stable Classifier: Intended Audience :: Developers Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3) Classifier: Programming Language :: Python Classifier: Programming Language :: Python :: 3.6 Classifier: Programming Language :: Python :: 3.7 Classifier: Programming Language :: Python :: 3.8 Classifier: Programming Language :: Python :: 3.9 Classifier: Operating System :: OS Independent Classifier: Topic :: Printing Classifier: Topic :: Software Development :: Libraries :: Python Modules Classifier: Topic :: Text Processing :: Markup Classifier: Topic :: Multimedia :: Graphics Classifier: Topic :: Multimedia :: Graphics :: Presentation Description-Content-Type: text/markdown License-File: LICENSE Requires-Dist: Pillow [](https://github.com/PyFPDF/fpdf2/actions?query=branch%3Amaster) [](https://pypi.python.org/pypi/fpdf2) [](https://www.gnu.org/licenses/lgpl-3.0) [](https://codecov.io/gh/PyFPDF/fpdf2) [](https://pepy.tech/project/fpdf2) [](https://github.com/PyFPDF/fpdf2/discussions) [](http://makeapullrequest.com) [](http://www.firsttimersonly.com/) -> come look at our [good first issues](https://github.com/PyFPDF/fpdf2/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22) fpdf2 =====  `fpdf2` is a minimalist PDF creation library for Python: ```python from fpdf import FPDF pdf = FPDF() pdf.add_page() pdf.set_font('helvetica', size=12) pdf.cell(txt="hello world") pdf.output("hello_world.pdf") ``` It is a fork and the successor of `PyFPDF`. Compared with other PDF libraries, `fpdf2` is simple, small and versatile, with advanced capabilities, and is easy to learn and extend. It is also entirely writen in Python (no C is involved), and has only **one** dependency so far, to handle images: [Pillow](https://pillow.readthedocs.io/en/stable/). **Development status**: this project is **mature** and **actively maintained**. We are looking for contributing developers: if you want to get involved but don't know how, or would like to volunteer helping maintain this lib, [open a discussion](https://github.com/PyFPDF/fpdf2/discussions)! Installation Instructions: -------------------------- ```bash pip install fpdf2 ``` To get the latest development version: ```bash # Linux only: sudo apt-get install libjpeg-dev libpython-dev zlib1g-dev # Linux and Windows: git clone https://github.com/PyFPDF/fpdf2.git cd fpdf2 python setup.py install ``` Features: --------- * Python 3.6+ support * Unicode (UTF-8) TrueType font subset embedding * Internal/External Links * PNG, GIF and JPG support (including transparency and alpha channel) * Shape, Line Drawing * Generate [Code 39](https://fr.wikipedia.org/wiki/Code_39) & [Interleaved 2 of 5](https://en.wikipedia.org/wiki/Interleaved_2_of_5) barcodes * Cell / multi-cell / plaintext writing, automatic page breaks * Basic [conversion from HTML to PDF](https://pyfpdf.github.io/fpdf2/HTML.html) * A [templating system](https://pyfpdf.github.io/fpdf2/Templates.html) to render PDFs in batchs * Images & links alternative descriptions * Table of contents & [document outline](https://pyfpdf.github.io/fpdf2/DocumentOutlineAndTableOfContents.html) * Optional basic Markdown-like styling: `**bold**, __italics__, --underlined--` * Clean error handling through exceptions * Unit tests with `qpdf`-based PDF diffing and a high code coverage We validate all our PDF samples using 3 different checkers: [](https://github.com/qpdf/qpdf) [](https://www.datalogics.com/products/pdf-tools/pdf-checker/) [](https://verapdf.org) Documentation: -------------- - [Documentation Home](https://pyfpdf.github.io/fpdf2/) - Tutorial in several languages: [English](https://pyfpdf.github.io/fpdf2/Tutorial.html) - [Deutsch](https://pyfpdf.github.io/fpdf2/Tutorial-de.html) - [español](https://pyfpdf.github.io/fpdf2/Tutorial-es.html) - [हिंदी](https://pyfpdf.github.io/fpdf2/Tutorial-हिंदी.html) [português](https://pyfpdf.github.io/fpdf2/Tutorial-pt.html) - [Русский](https://pyfpdf.github.io/fpdf2/Tutorial-ru.html) - [Italian](https://pyfpdf.github.io/fpdf2/Tutorial-it.html) - [français](https://pyfpdf.github.io/fpdf2/Tutorial-fr.html) - Release notes: [CHANGELOG.md](https://github.com/PyFPDF/fpdf2/blob/master/CHANGELOG.md) You can also have a look at the `tests/`, they're great usage examples! Developers: ----------- Please check [the documentation page dedicated to development](https://pyfpdf.github.io/fpdf2/Development.html). ## Contributors ✨ This library could only exist thanks to the dedication of many volunteers around the world: