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,019
Downloads283,689
Analytics install events (30 days)2,447
Downloads / install events (30 days)8.2×

Source: GitHub Packages, fetched 2026-11-10T00:51:07Z. Analytics dates: 2026-10-11 to 2026-11-10. 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,4454,64322,099
Installs (--HEAD)2539
Installs on Request2,4424,64322,051
Installs on Request (--HEAD)2539
Build Errors1