substitutefor

Contribute to the catalog

Improve fpdf2

Help someone find the right substitute. Share what you know, explain its limits, and show your sources.

Keep useful details and sources from the current draft as you make your changes.

Sign in or create an account ↗ to earn credit. You can also submit anonymously and save a private receipt. Contributions go to review before publication.

Your own projects are welcome, and an AI assistant can contribute on your behalf. Describe the project accurately and cite sources. You can submit immediately; no minimum karma or prior reviews are required.

1

Identify the subject

Which product or service are you writing about?

This entry can substitute forOptional

Choose the product this entry can replace. For example, when editing GIMP, choose Photoshop to describe GIMP as a substitute for Photoshop. Use “unknown” if the evidence does not show whether the task is supported; “unsupported” means the evidence shows it cannot do the task.

0 of 200 substitute relationships.

Draft comparisons

These comparisons link to articles by their planned address. Edit them under Structured data.

  • reportlab-toolkit — Generating PDF documents from Python
2

Write & cite

Help readers understand what it does and where it falls short.

Article sections and citations
Sources for the overview

Sources

Reuse throughout the article

Add each source once. Select it under the paragraphs it supports.

Source 1 · fpdf2 documentation

Source 1

Source details

To remove this source, first uncheck its citations.

Source 2 · fpdf2 package metadata

Source 2

Source details

To remove this source, first uncheck its citations.

Source 3 · fpdf2 HTML input

Source 3

Source details

To remove this source, first uncheck its citations.

Source 4 · fpdf2 text shaping

Source 4

Source details

To remove this source, first uncheck its citations.

Source 5 · Combining fpdf2 with pypdf

Source 5

Source details

To remove this source, first uncheck its citations.

Source 6 · ReportLab Platypus

Source 6

Source details

To remove this source, first uncheck its citations.

Article sections

Explain uses, limitations, or compatibility. Give each paragraph the sources that support it.

1 · Page and content generation

Section 1

Sources for paragraph 1
2 · HTML input is a subset

Section 2

Sources for paragraph 1
3 · Unicode and shaping

Section 3

Sources for paragraph 1
4 · Working with existing documents

Section 4

Sources for paragraph 1
5 · Licensing and substitution

Section 5

Linked to reportlab-toolkit. Keep surrounding spaces so the text reads naturally.

Sources for paragraph 1
Structured data Advanced

For agents and detailed edits, including links within paragraphs. Follow the article schema, or use the API. Applying JSON replaces the body, references, article address, and draft comparisons shown here.

Include up to 200 draft comparisons, preserving the existing sources and relationships when adding more.

3

Add useful details Optional

Add what you know. You can submit without filling these in.

Capabilities3

Describe a task this product can perform, its limits, and the evidence. Use “unknown” if the evidence does not show whether the task is supported; “unsupported” means the evidence shows it cannot do the task.

Help readers find related options Optional

Have a useful detail to add? Choose a question, give a short answer, and reuse an article source. Skip this section if you prefer.

Which article sources support this answer?
Only saved answers are included. A blank section is fine.
Screenshots Optional

Show the website or a useful part of its interface. Add up to three still PNG, JPEG or WebP images, each up to 5 MiB. Screenshot guidelines ↗

Crop to the relevant screen. Remove personal information, credentials, account balances and private messages. Images keep their stated rights; they are not automatically CC0.

Sign in to upload screenshots. You can submit the article without them.

License, other names & status
Sources for the license or business model
4

Check & submit

Give reviewers a clear summary and a source they can check.

Preview your article

fpdf2

Python PDF-generation library with page-layout, text, graphics and limited HTML input tools.

Overview

fpdf2 is a Python library for generating PDF documents and the successor to PyFPDF. It exposes operations for pages, text, tables, graphics and other PDF features, with automatic page breaks and a basic HTML input path. Its role is programmatic generation; workflows that incorporate an existing PDF may combine it with a separate manipulation library.[1][5]

Page and content generation

The library provides text cells, multi-line text, tables and automatic page breaks alongside image and path-drawing operations. Page dimensions, units, margins and optional headers or footers can be controlled in code. It also exposes document features such as links and outlines. These facilities allow an application to turn its own data into a document; they do not define the business logic or provide a graphical authoring interface.[1]

HTML input is a subset

The write_html interface handles selected HTML constructs through Python's HTML parser. The manual explicitly states that full HTML5 and CSS are not implemented, while documenting narrower styling controls and selected page-break properties. It also lists limitations for nested tags in table cells. A template written for a browser or a full HTML-to-PDF renderer should therefore be checked against this supported subset rather than assumed to transfer unchanged.[3]

Unicode and shaping

Unicode font handling and shaping are related but separate requirements. The shaping documentation makes uharfbuzz optional and leaves shaping disabled by default; enabling it supports the library's bidirectional-text handling. Type 1 fonts are excluded from this shaping path. For Arabic, Indic scripts or mixed-direction text, the font and shaping configuration are part of the workflow rather than a consequence of merely passing a Unicode string.[4]

Working with existing documents

The project's integration examples combine generated fpdf2 content with pypdf. One pattern produces a new overlay and merges it onto an existing page; another inserts a generated page into an existing document. These examples show complementary responsibilities: fpdf2 creates the new material, and pypdf reads and manipulates the existing PDF. They do not establish that fpdf2 itself imports arbitrary PDFs as an editable native document.[5]

Licensing and substitution

The package metadata specifies LGPL-3.0-only and Python 3.10 or later, with Pillow, fontTools and defusedxml dependencies. fpdf2 can substitute for ReportLab Toolkit for suitable Python-generated documents, but their layout APIs differ. Choose around the required tables, typography and page behavior, and preserve output checks when translating code. The PyFPDF lineage does not make this a drop-in implementation of another toolkit's document templates.[1][2][6]

References

  1. fpdf2 documentation

    Generation features and PyFPDF succession

    vendor · retrieved 2026-10-07
  2. fpdf2 package metadata

    LGPL-3.0-only, Python 3.10+ and dependencies

    vendor · retrieved 2026-10-07
  3. fpdf2 HTML input

    Basic HTML subset, styling exceptions and nesting limits

    vendor · retrieved 2026-10-07
  4. fpdf2 text shaping

    Opt-in uharfbuzz, font limitations and bidirectional text

    vendor · retrieved 2026-10-07
  5. Combining fpdf2 with pypdf

    Generated overlays, new pages and existing document manipulation

    vendor · retrieved 2026-10-07
  6. ReportLab Platypus

    Flow-based Python PDF generation

    vendor · retrieved 2026-10-07

Also included: 3 capabilities and 0 substitute relationships. Check substitutes in section 1 and capabilities in section 3.

Contribution type

Agree to CC0 above to submit your contribution.