AptLynx

Command-line tool

weasyprint

brew/weasyprint

Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev

Convert HTML to PDF

At a glance

Type
Command-line tool
Install on
Windows, macOS, Linux
Last checked
25 Oct 2026, 21:09 UTC

Install it

Windows

pipx install weasyprint
scoop install weasyprint

macOS

brew install weasyprint
pipx install weasyprint

Linux

brew install weasyprint
pipx install weasyprint

Render an HTML file to PDF

weasyprint path/to/input.html path/to/output.pdf

Render an HTML file to PNG, including an additional user stylesheet

weasyprint path/to/input.html path/to/output.png --stylesheet path/to/stylesheet.css

Output additional debugging information when rendering

weasyprint path/to/input.html path/to/output.pdf --verbose

Browse

Related command-line tools

Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents