So I have made some amendment from back end site for process statement of account.
When we click Download button, it should be able to download the PDF.
From dev site, the result is beautiful and as expected.
Font size is okay, page break is working, etc.
But when we try to implement into Live site, it does not give the same output.
Font size no change, page break is not working.
we are running ERPNext: v13.33.0 (version-13)
Frappe Framework: v13.32.0 (version-13)
Checked on wkhtmltopdf version, both are same. (0.12.5)
v13 uses a pdf generator called wkhtmltopdf. It’s a nightmare to work with, and there are dozens of threads about it on this forum. The short answer is that wkhtmltopdf can’t access your css and other assets, likely due to a permissions or addressing issue.
Unfortunately, there’s not much Frappe can do in the application space to solve this issue in the application space, as wkhtmltopdf is installed separate binary executable. It’s an issue of server configuration. For what it’s worth, v14 has ditched wkhtmltopdf for weasyprint for exactly this reason.
Thankyou very much @peterg for the helpful info and feedback. Really appreciate it.
Look forward for the upcoming implementation, can’t wait to see how it will help us all in future. And thankyou to all team members for taking note and initiative and working hard to improve from time to time.
Hey @peterg there still seems to be a dependency there for wkhtmltopdf in my v14 install. If I uninstall wkhtmltox and install weasyprint, I get this error. Do I need to configure anything to make the transition?
File “env/lib/python3.10/site-packages/pdfkit/configuration.py”, line 35, in init
with open(self.wkhtmltopdf) as f:
FileNotFoundError: [Errno 2] No such file or directory: b’’