[URGENT] ERPNext Printing and PDF error

I’ve created a new print format using the format builder and some custom CSS.
The form shows up correctly in the HTML format with all the correct styling.

But when I try to download it, a PDF is downloaded with no layout styling, It lacks the layout that HTML has.

Moreover, the “print” button is not working at all with the custom formats, it throws a server error.

Most commonly caused by incorrect wkhtmltopdf version - reqd=0.12.6+.
Check with

wkhtmltopdf --version

its 0.12.6

Hi,

Is it: wkhtmltopdf 0.12.6.1 (with patched qt) ?

Can you try wkhtmltopdf on the html page directly and see if it produces errors?

1 Like

It works directly and it also works when I create an HTML + CSS all custom format by myself but when I use the beta print format builder it doesn’t convert it correctly and nor does it print.

I don’t know if this is relevant specifically: https://github.com/frappe/frappe/issues/19703

Has the old builder been tried as well?