weasyprint
« Back to VersTracker
Description:
Convert HTML to PDF
Type: Formula  |  Latest Version: 67.0@0  |  Tracked Since: Dec 2, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: pdf html css reporting document-generation
Install: brew install weasyprint
About:
WeasyPrint is a visual rendering engine for HTML and CSS that can export to PDF. It is designed to generate reports, invoices, and multi-page documents from HTML templates, ensuring high-quality print layouts. Unlike browser-based tools, it runs as a command-line utility or Python library, making it ideal for server-side automation.
Key Features:
  • Supports modern CSS features including paged media
  • Cross-platform command-line interface
  • Python library for easy integration
  • No browser dependency
Use Cases:
  • Generating PDF reports from web templates
  • Creating invoices and receipts programmatically
  • Automating document generation in CI/CD pipelines
Alternatives:
  • wkhtmltopdf – Uses older WebKit engine; WeasyPrint has better CSS Paged Media support
  • pandoc – General document converter; WeasyPrint specializes in HTML/CSS to PDF
Version History
Detected Version Rev Change Commit
Dec 2, 2025 6:56pm 0 VERSION_BUMP 48161edf
Nov 6, 2025 8:22am 1 VERSION_BUMP 15bad699
Oct 11, 2025 8:03am 0 VERSION_BUMP e6c5561c
Sep 15, 2025 4:26pm 0 VERSION_BUMP c9bb9ba7
Oct 29, 2024 6:59pm 0 VERSION_BUMP 6c189530
Sep 11, 2024 7:37pm 0 VERSION_BUMP 43d431be
Jun 21, 2024 5:50pm 0 VERSION_BUMP 477c1a7a
Dec 11, 2023 2:26pm 0 VERSION_BUMP bd869e08
Dec 11, 2023 1:55pm 0 VERSION_BUMP 3c81fd78
Oct 15, 2023 9:11pm 1 VERSION_BUMP 7cf91440
Sep 29, 2023 11:55am 0 VERSION_BUMP 6238d7f4
Sep 25, 2023 10:45pm 0 VERSION_BUMP adcf7e59
May 11, 2023 7:10am 0 VERSION_BUMP 64b25115