V13 PDF files from dev and live site is not giving same result

Hi all,

need some clarification regarding PDF output.

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)
  • Installed cups also no changes.

From dev site :



however, from live site :


is there any other way I can overcome/what things I should check for this ? What did I missed ?

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.