Alternatives to WeasyPrint
A command-line tool and Python library that turns HTML and CSS documents into PDF files. The listings below can replace it for an important use case. Each note says what changes if you switch.
The original
WeasyPrint
A command-line tool and Python library that turns HTML and CSS documents into PDF files.
Replacements
Listings that take over the same core job as WeasyPrint.
Gotenberg
Self-hosted Docker API that converts web pages, Markdown and Office documents into PDF files.
Gotenberg is a self-hosted Docker API bundling Chromium and LibreOffice, so it runs JavaScript and also converts Office files and Markdown, unlike WeasyPrint's Python library.
Similar software
Related functionality, not a direct replacement.
Ghostscript
PostScript and PDF interpreter behind a great deal of other software.
pdfcpu
Go library and command line for validating and transforming PDFs.
qpdf
Command-line tool for content-preserving PDF transformations.
pdf2htmlEX
A command-line converter that turns PDF files into HTML while keeping text and layout.
Cpdf
Command-line PDF toolkit covering split, merge, stamp and encrypt.
Stirling PDF
A self-hosted web PDF toolkit for merging, splitting, converting, signing and editing PDFs on your own server.