# fpdf2 — card for AI agents

Pure-Python PDF generation: text, images, tables and HTML snippets into new PDF files.

Category: Files, images and media · PyPI package `fpdf2` · latest version 2.9.0 (checked 2026-11-01)
Install: `pip install fpdf2`
License: LGPL-3.0-only (weak-copyleft)

In your own product (generator, app, hosted service): **conditions**. Weak copyleft: fine inside a closed product, but changes to the library's own files stay under its license and must be shared.

## Numbers (AgentGid data)
- Gid Score: 53.3 (#1616 of all tools, 107 of 281 in its category)
- Used in 8 public projects set up for AI coding agents (0.1%)
- Downloads last week: 7,209,902 (as of 2026-11-24), +28.2% over 4 weeks
- GitHub stars: 1,560 (as of 2026-11-24)
- Last push: 2026-11-24

## Often used with
python-dotenv 76.0%, pandas 58.0%, Pydantic 54.0%, Requests 54.0%, Uvicorn 54.0%, FastAPI 50.0%

## Checked alternatives (same job)
- PyPDF: https://agentgid.com/tools/pypdf/agent.md
- PyMuPDF: https://agentgid.com/tools/pymupdf/agent.md
- ReportLab: https://agentgid.com/tools/reportlab/agent.md

## Links
- AgentGid page: https://agentgid.com/tools/fpdf2/
- Homepage: https://py-pdf.github.io/fpdf2/
- Repository: https://github.com/py-pdf/fpdf2

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
