[Article] Wkhtmltopdf Considered Harmful

I just found this article about Wkhtmltopdf.

What can you say about it considering it is used in Frappe/ERPNext ?

Wkhtmltopdf Considered Harmful

I found this thread about it too:


1 Like

I think there are a bunch problems with Wkhtmltopdf in Frappe, and they mostly relate to poor check printing and the inability to handle margins correctly, which is a combination of Frappe (hard coded margins) and Wkhtmltopdf (number of margins and pagination).
“harmful” is an overstatement (echoed by a lot of people in the linked comments), but it’s not awesome for sure. I’m interested in their favored alternative, weasyprint, which is written in python and seems to have a nice API.