Information about bug
When trying to print a PDF from Quotation, Sales Order, or Sales Invoice, we are having the issue where the Header and Footer only show on the 1st page of the PDF, and not the subsequent ones even with the “Repeat Header and Footer in PDF” setting properly checked in Print Settings.
The issue appeared after we updated our Frappe and Erpnext version about a month ago via bench update to Ver. 13.15 We had not updated the instance for a while before that, so I can’t remember exactly what build we were on, but it was still version 13.
We Found this solution on github link: Erpnext Header / Letter Head not repeating on every page of PDF after update ver 13.15 · Issue #15378 · frappe/frappe · GitHub
- sudo apt purge wkhtmltopdf -y
- do a reboot
- wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.bionic_amd64.deb
- sudo dpkg -i wkhtmltox_0.12.5-1.bionic_amd64.deb
- sudo apt install -f
- if you find any issues with the dependencies, install that as well.
- Finally check wkhtmltopdf --version
- It should be
wkhtmltopdf 0.12.5 (with patched qt)