PDF column breaks after update to ERPNext v12.20

Since I update to ERPNext v12.20 and Frappe 12.17, the PDF from print format breaks the column arrangement.
The print view (printer icon on toolbar) is correct.
The Print button (on the toolbar of print view) also print correctly.
02


But the PDF ( on the same toolbar of print view) align all columns to the left.

19

I tried to update wkhtmltopdf but it already the latest version (wkhtmltopdf 0.12.6 (with patched qt))

Can anybody please guide me to fix it?
Thank you.

Was just got this issue with this version

**ERPNext:**  v12.18.0 (version-12)

**Frappe Framework:**  v12.15.0 (version-12)

I thought something changed in my site_config but everything looks fine but still not able to get pdf to work.

solution

This is my hosts:

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

What do I put in the /etc/hosts?
For the IP, should it be the localhost IP or the server IP?

I have multitenant active. Do I have to put every sites in the hosts?

I think I was up from ERPNext v12.18.0 and Frappe v12.16.3
But since it was a git update (not reinstall) I think the wkhtmltopdf is not also updated.
What I did the last time (when I realise this problem) after up to ERPNext v12.20 and Frappe v12.17, I update wkhtmltopdf.
So I suspect the issue is on the compatibility with the latest wkhtmltopdf.

How to downgrade the wkhtmltopdf to v0.12.5?

If I put the server IP, still does not solve the problem.
If I put local (127.0.0.1) the browser doesn’t load the pdf page.

And ERPNext v12.21.0 and Frappe v12.18.0 are just released (but seems not fixing this problem).
Might as well going further… :slight_smile:

1 Like

We fixed it with whtml2pdf update. @iRaySpace Please share how it was fixed.

Thanks.

I would be very interested to see the solution.