substitutefor

Contribute to the catalog

Improve WeasyPrint

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.

  • prince — Generating paginated PDFs from HTML and CSS
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 · WeasyPrint documentation

Source 1

Source details

To remove this source, first uncheck its citations.

Source 2 · WeasyPrint first steps

Source 2

Source details

To remove this source, first uncheck its citations.

Source 3 · WeasyPrint common use cases

Source 3

Source details

To remove this source, first uncheck its citations.

Source 4 · WeasyPrint API reference

Source 4

Source details

To remove this source, first uncheck its citations.

Source 5 · WeasyPrint design scope

Source 5

Source details

To remove this source, first uncheck its citations.

Source 6 · Prince overview

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 · Template-driven pagination

Section 1

Sources for paragraph 1
2 · Static rendering and release changes

Section 2

Sources for paragraph 1
3 · Resource access and untrusted input

Section 3

Sources for paragraph 1
4 · Specialized outputs

Section 4

Sources for paragraph 1
5 · Distribution and substitution

Section 5

Linked to prince. 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

WeasyPrint

HTML and CSS renderer for generating paginated PDF documents through Python or a command-line interface.

Overview

WeasyPrint renders HTML and CSS into paginated PDF documents for applications such as reports, invoices and books. Its Python layout engine is designed for print-oriented web standards rather than a full interactive browser. It is available as open-source software with command-line and Python interfaces.[1][2]

Template-driven pagination

Documents can be generated from HTML templates with CSS controlling their printed layout. The common-use guide places page size and margins in @page rules and describes page numbering and headers. This lets a web-oriented template produce discrete pages rather than merely capture a scrolling screen. The resulting pagination still depends on the renderer's supported CSS and the actual content supplied.[1][3]

Static rendering and release changes

WeasyPrint does not execute the JavaScript that an interactive website might use to populate its content. Required text and graphics must therefore be available through the input and supported resources. The API reference also warns that rendered output can change between releases even when calling code still works. Keeping templates compatible requires checking representative output, not only whether an upgrade completes without an API exception.[4][5]

Resource access and untrusted input

The default fetcher can read file and HTTP URLs, but does not automatically provide browser-style cookies or authentication. Applications may need a custom fetcher for controlled resources. The security guide warns that untrusted HTML or CSS can cause excessive processing and expose accessible files. Deployment should constrain resources, filesystem and network access rather than assume that generating a PDF is an inherently isolated operation.[2]

Specialized outputs

The renderer exposes options for specialized PDF variants, including archival and accessibility-oriented outputs. Its documentation explicitly declines to guarantee conformance for arbitrary inputs: the HTML structure, styles and chosen PDF features must also satisfy the relevant requirements. Selecting a profile is therefore part of producing a compliant document, not a substitute for checking the finished output against the required specification.[3]

Distribution and substitution

The BSD-3-Clause engine has documented Linux, macOS and Windows installation routes, with Python and Pango among its dependencies. It can substitute for Prince for suitable HTML/CSS document-generation workloads. A switch requires validating pagination and fonts and replacing any unsupported scripting or engine-specific styles. This comparison establishes a shared production task, without claiming identical typesetting or a measured performance advantage.[1][2][4][5][6]

References

  1. WeasyPrint documentation

    HTML/CSS pagination engine and BSD-3-Clause licensing

    vendor · retrieved 2026-10-07
  2. WeasyPrint first steps

    Platform dependencies, URL fetchers and untrusted-input risks

    vendor · retrieved 2026-10-07
  3. WeasyPrint common use cases

    Page dimensions, PDF variants and conformance caveat

    vendor · retrieved 2026-10-07
  4. WeasyPrint API reference

    Versioning and rendering changes

    vendor · retrieved 2026-10-07
  5. WeasyPrint design scope

    Static paged content without JavaScript execution

    vendor · retrieved 2026-10-07
  6. Prince overview

    HTML/CSS PDF generation and paged layout

    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.