# WeasyPrint

Python library and command-line tool that renders HTML and CSS pages to PDF documents.


Source: https://findsoftware.frbit.cloud/weasyprint/
Last reviewed: 2026-11-17
Listed since: 2026-11-17

## Record

### Links

- home: https://weasyprint.org
- repository: https://github.com/Kozea/WeasyPrint
- docs: https://doc.courtbouillon.org/weasyprint/stable/
- mastodon: https://fosstodon.org/@courtbouillon

### Identity

- status: active
- maintainer: Elycoop − SCOP SA
- maintainerType: company
- parent: unknown
- firstRelease: 2011
- hqCountry: unknown

### Kind

- category: media
- hosting: python
- language: python
- runtime: python
- runtimeMin: python 3.10
- basedOn: unknown

### Content

- contentStore: not applicable
- databases: not applicable
- adminUi: not applicable
- headlessApi: not applicable
- templating: not applicable
- i18n: not applicable

### Rendering and deploy

- runsAs: unknown
- renderingModes: not applicable
- installMethod: pip, Homebrew, Linux distribution package, Windows executable

### License

- licenseModel: open-source
- license: BSD-3-Clause

### Releases

- currentMajor: 70
- latestReleaseDate: 2026-09-08

### Adoption

- githubStargazers: 9795
- packagistDownloads: not applicable
- npmWeeklyDownloads: not applicable
- contributors: 169
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: 1344
- dependentPackages: 114

### Sources

- urls: https://weasyprint.org/ (read 2026-11-17)
- urls: https://api.github.com/repos/Kozea/WeasyPrint (read 2026-11-17)
- urls: https://github.com/Kozea/WeasyPrint/blob/main/README.rst (read 2026-11-17)
- category: https://weasyprint.org/ (read 2026-11-17)
- language: https://api.github.com/repos/Kozea/WeasyPrint (read 2026-11-17)
- runtime: https://github.com/Kozea/WeasyPrint/blob/v70.0/README.rst (read 2026-11-17)
- runtimeMin: https://pypi.org/pypi/weasyprint/json (read 2026-11-17)
- installMethod: https://doc.courtbouillon.org/weasyprint/stable/first_steps.html (read 2026-11-17)
- installMethod: https://doc.courtbouillon.org/weasyprint/stable/first_steps.html (read 2026-11-17)
- installMethod: https://doc.courtbouillon.org/weasyprint/stable/first_steps.html (read 2026-11-17)
- installMethod: https://doc.courtbouillon.org/weasyprint/stable/first_steps.html (read 2026-11-17)
- license: https://api.github.com/repos/Kozea/WeasyPrint (read 2026-11-17)
- maintainer: https://www.courtbouillon.org/legal/ (read 2026-11-17)
- firstRelease: https://pypi.org/pypi/weasyprint/json (read 2026-11-17)
- currentMajor: https://api.github.com/repos/Kozea/WeasyPrint/releases (read 2026-11-17)
- latestReleaseDate: https://api.github.com/repos/Kozea/WeasyPrint/releases (read 2026-11-17)
- githubStargazers: https://api.github.com/repos/Kozea/WeasyPrint (read 2026-11-17)
- contributors: https://api.github.com/repos/Kozea/WeasyPrint/contributors (read 2026-11-17)
- dependentPackages: https://packages.ecosyste.ms/api/v1/registries/pypi.org/packages/weasyprint (read 2026-11-17)
- dependentRepos: https://packages.ecosyste.ms/api/v1/registries/pypi.org/packages/weasyprint (read 2026-11-17)

## Notes

WeasyPrint turns HTML and CSS into PDF documents. Its layout engine is written in Python and designed for pagination, and it does not use a full browser engine. A web application calls it from Python to produce a PDF from a page, and the `weasyprint` command does the same from the shell.

WeasyPrint needs Pango, a text-layout system library, next to the Python package. The [installation guide](https://doc.courtbouillon.org/weasyprint/stable/first_steps.html) lists the platforms and their packages. The documentation's "Why WeasyPrint?" section names wkhtmltopdf as one of the projects that add paged-media features to existing browsers.

## Worth knowing

The docs warn that untrusted HTML or CSS can cause high memory use, endless renderings or access to local files, and advise running the service as a user with limited access or in a container. WeasyPrint can take a long time to render long documents. For many documents, the docs suggest the Python API in long-lived processes to avoid start-up costs on every run.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
