PDF no longer same with print

Hi, since last month my PDF no longer show correct format.
ERPnext v11, ubuntu host, no custom app, no other wkhtmltopdf apps.

I expect this, since this is what it was since last year

But it changed into this if printed using PDF

Can somebody tell me what was changed during update that change this?
Thanks in advance

Check your installed version of wkhtmltopdf - should be

wkhtmltopdf 0.12.5 (with patched qt)

Thank you for quick response!
It is now version wkhtmltopdf 0.12.3 (with patched qt)
bench update does not update wkhtmltopdf, pip install wkhtmltopdf says permission denied, even with --user frappe

how can I update it?

This works on debian stretch/buster, so should be OK on ubuntu too

#6) wkhtmltopdf - the default apt-get version is outdated. Install pre-reqs, and then a manual/latest version
sudo apt install -y xfonts-75dpi fontconfig libxrender1 xfonts-base
wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.stretch_amd64.deb
sudo dpkg --install wkhtmltox_0.12.5-1.stretch_amd64.deb
1 Like

Thank you!
For ubuntu 18.04, we need to install libjpeg62-turbo as wkhtmltox_0.12.5 presquisities. I install it from Debian -- Package Download Selection -- libjpeg62-turbo_2.1.2-1+b1_amd64.deb

wget http://ftp.tw.debian.org/debian/pool/main/libj/libjpeg-turbo/libjpeg62-turbo_1.5.2-2+b1_amd64.deb
sudo dpkg --install wkhtmltox_0.12.5-1.stretch_amd64.deb

Very Nice,
I had the same problem on Debian 10 Buster:

wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.buster_amd64.deb
sudo dpkg -i wkhtmltox_0.12.5-1.buster_amd64.deb