Alternatives · WeasyPrint

From wkhtmltopdf to WeasyPrint: what changes

WeasyPrint is an HTML and CSS engine written in Python for pagination, free under BSD-3-Clause, not built on a browser engine. wkhtmltopdf’s status page suggests it, with Prince, for reports from HTML you control. pdfkiln keeps wkhtmltopdf’s command line instead, and renders with Chromium.

What changes when you leave wkhtmltopdf for WeasyPrint

When WeasyPrint is the right choice

HTML written for print, without JavaScript, in a Python stack, and PDF/A or PDF/UA at no cost.

When pdfkiln is

Templates made for wkhtmltopdf that must keep their pages, JavaScript in the page or in its headers and footers, libraries that call wkhtmltopdf, any language through the command line. PDF/A-3 and Factur-X from these same templates are what pdfkiln Pro is being built for.

Sources

WeasyPrint on GitHub, its first steps, going further and API reference, and wkhtmltopdf’s status page, read on 29 October 2026.