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.
sudo apt install -f ./wkhtmltox_0.12.6.1-2.jammy_amd64.deb
sudo apt install -f ./wkhtmltox_0.12.6-1.focal_amd64.deb
sudo apt install ./wkhtmltox_0.12.6-1.bionic_amd64.deb
sudo apt install ./wkhtmltox_0.12.6-1.xenial_amd64.deb