---
title: "fpdf | pypx"
description: "Simple PDF generation for Python"
canonical_url: "https://pypx.app/packages/fpdf"
meta:
  "og:description": "Simple PDF generation for Python"
  "og:image": "https://pypx.app/_og/d/h_630%2Cc_PackageCard%2Cname_fpdf%2Cversion_1.7.2%2Csummary_Simple%2BPDF%2Bgeneration%2Bfor%2BPython%2Clicense_GNU%2BLesser%2BGeneral%2BPublic%2BLicense%2Bv3%2B(LGPLv3)%2Cp_Ii9wYWNrYWdlcy9mcGRmIg%2Cs_9QbtnGUcib6sjBZa.png"
  "og:image:height": "630"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "fpdf 1.7.2"
  "twitter:image": "https://pypx.app/_og/d/h_630%2Cc_PackageCard%2Cname_fpdf%2Cversion_1.7.2%2Csummary_Simple%2BPDF%2Bgeneration%2Bfor%2BPython%2Clicense_GNU%2BLesser%2BGeneral%2BPublic%2BLicense%2Bv3%2B(LGPLv3)%2Cp_Ii9wYWNrYWdlcy9mcGRmIg%2Cs_9QbtnGUcib6sjBZa.png"
---

> Index of every page on this site: [llms.txt](https://pypx.app/llms.txt)

# **fpdf**

v1.7.2

Simple PDF generation for Python

39 KBGNU Lesser General Public License v3 (LGPLv3) Likely Unmaintained

[** Diff **](https://pypx.app/packages/fpdf/diff)

`$ uv add fpdf`

# pyfpdf: FPDF for python

PyFPDF is a library for PDF document generation under Python, ported from PHP (see `FPDF <http://www.fpdf.org/>`\_\_ "Free"-PDF, a well-known PDFlib-extension replacement with many examples, scripts and derivatives).

Compared with other PDF libraries, PyFPDF is simple, small and versatile, with advanced capabilities and easy to learn, extend and maintain.

## Features:

- Python 2.5 to 2.7 support (with experimental Python3 support)
- Unicode (UTF-8) TrueType font subset embedding
- Barcode I2of5 and code39, QR code coming soon ...
- PNG, GIF and JPG support (including transparency and alpha channel)
- Templates with a visual designer & basic html2pdf
- Exceptions support, other minor fixes, improvements and PEP8 code cleanups

## Installation Instructions:

To get the latest development version you can download the source code running:

::

```
   hg clone https://code.google.com/p/pyfpdf/ 
   cd pyfpdf
   python setup.py install
```

You can also install PyFPDF from PyPI, with easyinstall or from Windows installers. For example, using pip:

::

```
   pip install fpdf
```

**Note:** `Python Imaging Library <http://www.pythonware.com/products/pil/>`\_\_ (PIL) is needed for GIF support. PNG and JPG support is built-in and don't require any external dependency.

## Documentation:

- Tutorial: https://code.google.com/p/pyfpdf/wiki/Tutorial
- Reference Manual: https://code.google.com/p/pyfpdf/wiki/ReferenceManual (spanish translation available)

For further information, see the project site: https://code.google.com/p/pyfpdf/ or the GitHub mirror: https://github.com/reingart/pyfpdf

## **Details **

<dl>

<dt>Version</dt>
<dd>1.7.2</dd>

<dt>License</dt>
<dd>GNU Lesser General Public License v3 (LGPLv3)</dd>

<dt>Maintainer</dt>
<dd>Mariano Reingart</dd></dl>

## **Links**

- [Download](https://github.com/reingart/pyfpdf/tarball/1.7.2)
- [Homepage](http://code.google.com/p/pyfpdf)
- [View on PyPI](https://pypi.org/project/fpdf/)

## **Maintainers **

- Mariano Reingart · [reingart@gmail.com](mailto:reingart@gmail.com)

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://pypx.app/#website","@type":"WebSite","description":"The Python Package Index, reimagined. Fast search, dependency insights, download trends, and changelogs — all in one place.","name":"pypx","url":"https://pypx.app/"},{"@id":"https://pypx.app/packages/fpdf#webpage","@type":"WebPage","description":"Simple PDF generation for Python","name":"fpdf","url":"https://pypx.app/packages/fpdf","isPartOf":{"@id":"https://pypx.app/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://pypx.app/packages/fpdf"]}]},{"@id":"https://pypx.app/packages/fpdf#/schema/software-application/1","@type":"SoftwareApplication","applicationCategory":"DeveloperApplication","description":"Simple PDF generation for Python","license":"GNU Lesser General Public License v3 (LGPLv3)","name":"fpdf","softwareVersion":"1.7.2"}]}
```

## Sitemap

See the full [sitemap](https://pypx.app/sitemap.md) for all pages.
