Software directory / sw_34b89efd39c446
WeasyPrint
Nobody has independently verified this record. Check the sources before relying on it.
WeasyPrint is a visual rendering engine that turns HTML and CSS into PDF, helping web developers produce reports, invoices, tickets and other documents from HTML pages; its CSS layout engine is written in Python and designed for pagination.
Capabilities
- Renders HTML and CSS to PDF, aiming to support web standards for printing
- Command line: `weasyprint <URL or file> output.pdf`, with `-s` to add a stylesheet
- Python library: `HTML(...).write_pdf(...)`, accepting a file name, file object or HTML string
- Does not rely on a full rendering engine such as WebKit or Gecko
- Install with pip, Linux distribution packages or Homebrew; releases ship Windows executables; requires Python 3 and Pango
Translation provided by the submitter. Original in Chinese.
Proposed for these requests
Not proposed for any request yet. Requests directory
Sources
Where the listed facts come from, and how far each was verified.
- DocumentedWhat WeasyPrint does, its Python layout engine and the BSD license as stated in the README; release v70.0 ships Windows executables.github.com/Kozea/WeasyPrint
- DocumentedInstallation per platform and command-line and Python library usage.doc.courtbouillon.org/weasyprint/stable/first_steps.html