weasyprint

Install command:
brew install weasyprint

Convert HTML to PDF

https://www.courtbouillon.org/weasyprint

License: BSD-3-Clause

Development: Pull requests

Formula JSON API: /api/formula/weasyprint.json

Formula code: weasyprint.rb on GitHub

Bottle (binary package) installation support provided for:

macOS on
Apple Silicon
golden gate ✅
tahoe ✅
sequoia ✅
Linux ARM64 ✅
x86_64 ✅

Current versions:

stable ✅ 70.0

Revision: 1

Depends on:

cffi 2.1.1 C Foreign Function Interface for Python
pango 1.58.2 Framework for layout and rendering of i18n text
pillow 13.0.0 Friendly PIL fork (Python Imaging Library)
python@3.15 3.15.2 Interpreted, interactive, object-oriented programming language

Uses from macOS: libffi

Binaries: weasyprint

GitHub Packages downloads:

Last 30 days20,451
Downloads285,458
Analytics install events (30 days)2,521
Downloads / install events (30 days)8.1×

Source: GitHub Packages, fetched 2026-11-13T00:54:09Z. Analytics dates: 2026-10-14 to 2026-11-13. Totals exclude downloads from Bintray before the migration to GitHub Packages. Downloads and install attempts measure different things; the difference does not count analytics opt-outs. Definitions and limitations.

Analytics:

30 days90 days365 days
Installs2,5184,64922,074
Installs (--HEAD)3640
Installs on Request2,5174,64822,027
Installs on Request (--HEAD)3640
Build Errors1