WeasyPrint HTML and CSS to PDF Document Generator
WeasyPrint is a Python library by Kozea/CourtBouillon that converts HTML and CSS into PDF documents. It implements a CSS layout engine designed specifically for pagination, supporting web standards for printing including page breaks, headers, page counters, and responsive layouts without relying on a browser engine like WebKit or Gecko.
Installation
Requirements and caveats from upstream:
WebKit or Gecko. The CSS layout engine is written in Python, designed for
For Python 3.10+, tested on CPython and PyPy
Extracted from upstream docs: https://raw.githubusercontent.com/Kozea/WeasyPrint/HEAD/README.rst