Home Developer Corner PDF Printout Doesn’t Show Header in Frappe/ERPNext

PDF Printout Doesn’t Show Header in Frappe/ERPNext

by karani

It is quite frustrating to have your printouts looking all well only to get broken when you try to render them into a PDF that can be downloaded. If you have a similar case in your ERPNext or Frappe instance, where the letterhead doesn’t show on the PDF format, it is because your wkhtmltopdf package needs to be updated. In this article, I will summarize how you can quickly do this in different versions of Ubuntu.

After you have successfully completed the two stages, restart the supervisor if on production or restart your instance if in development to ensure changes take effect.

Ubuntu 22.02

wget https://github.com/wkhtmltopdf/packaging/releases/download/

sudo apt install -f ./wkhtmltox_0.12.6.1-2.jammy_amd64.deb

Ubuntu 20.04

wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.focal_amd64.deb

sudo apt install -f ./wkhtmltox_0.12.6-1.focal_amd64.deb

Ubuntu 18.04

wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.bionic_amd64.deb

sudo apt install ./wkhtmltox_0.12.6-1.bionic_amd64.deb

Ubuntu 16.04

wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.xenial_amd64.deb

sudo apt install ./wkhtmltox_0.12.6-1.xenial_amd64.deb

You may also like