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