WeasyPrint

From XPUB & Lens-Based wiki

Python free software library that can be used to render HTML and CSS into paginated PDF output. Based on cairo and pango.

https://weasyprint.readthedocs.io/en/latest/