Skip to the content
Know your tech before you buy it. Makers: get listed from $49/mo

WeasyPrint

weasyprint.org

  • Free plan
  • Windows
  • macOS
  • Linux
  • API
  • Self-hosted
7.6 Club score Visit weasyprint.org

What WeasyPrint is

WeasyPrint is free, open-source software that lets web developers create PDF documents from HTML pages. Its Python library can render an HTML object to a PDF with HTML.write_pdf(), and the command-line interface includes PDF/A, PDF/UA, and PDF/X options. Supported inputs include HTML, CSS, local files, URLs, file objects, HTML strings, raster images, and SVG. The maker’s examples include reports, invoices, tickets, books, letters, and posters, and the software supports fillable form creation. Documentation covers installation on Linux, macOS, and Windows, as well as use as a Python library. Community-maintained Docker images and an AWS Lambda layer are also described. The default HTTP client does not support cookies or authentication, though a custom URL fetcher can be used. The documentation warns that untrusted HTML or CSS may cause security problems. Version 70.0 requires Python 3.10 or later and Pango 1.44 or later, among other dependencies. Kozea created and develops WeasyPrint; CourtBouillon offers professional assistance and support, with consulting plans listed from €150 a year, excluding taxes.

Who it suits

WeasyPrint suits web developers who need to generate PDFs from HTML and CSS, including documents such as reports and invoices. Its free software is available for Linux, macOS, Windows, and self-hosted deployment.

Good to know, and what to watch

  • Free and open-source software.
  • Python library and command-line interface are available.
  • Supports PDF/A, PDF/UA, and PDF/X options.
  • Supports fillable form creation.
  • Default HTTP client does not support cookies or authentication.
  • Untrusted HTML or CSS may cause security problems.
  • Version 70.0 requires Python 3.10 or later and Pango 1.44 or later.

Free and open source

Free

Basic consulting

€150/yr

Essential consulting

€350/yr

Premium consulting

€550/yr

Free plan

The verdict

WeasyPrint provides a free route from HTML to PDF, with a Python API and command-line options. Review its security warning, HTTP-client limitation, and dependencies when planning an implementation.

What the maker publishes

Creator and maintainer
WeasyPrint was created and developed by Kozea, while CourtBouillon provides professional support, maintenance, and community management. source
Dependencies
WeasyPrint 70.0 requires Python 3.10 or later and Pango 1.44 or later, among other dependencies. source
Integrations
The documentation describes use as a Python library and lists community-maintained Docker images and an AWS Lambda layer. source
Intended users
The maker describes WeasyPrint as a solution for web developers and shows document examples including statistical reports and invoices. source
Notable limit
The default HTTP client does not support cookies or authentication, though a custom URL fetcher can be used. source
Output examples
The maker shows reports, invoices, tickets, books, letters, and posters as sample documents. source
PDF options
The command-line interface supports PDF variants including PDF/A, PDF/UA, and PDF/X options. source
Platform support
The documentation gives installation instructions for Linux, macOS, and Windows. source
Purpose
WeasyPrint is free and open source software that helps web developers create PDF documents from HTML pages. source
Python API
The Python library can render an HTML object to a PDF file with HTML.write_pdf(). source
Security
The documentation warns that using WeasyPrint with untrusted HTML or CSS may cause security problems. source
Support
CourtBouillon offers professional assistance with WeasyPrint use, configuration, integration, bug fixes, new features, and templating. source

Checked against the maker's pages on 7 Oct 2026.