Hi @edbo,
Your progresses on the topic look very promissing.
If we want to have this as part of tryton we will need to fix the scapping issues and decide which command we run to do the conversion (or if we make it configurable)
For building I’m wondering if it won’t be better to delegate the work to a Python wrapper which should take care about all the commands needed to execute.
This should be an optional library like weasyprint