wkhtmltopdf Odoo18 on debian12 without logo / footer / header showin in pdf
Here are some solutions to fix it.
1/. verify the report.url setting in system parameters
settings -> enable developer mode -> Technical -> system parameters
in Odoo 17 or 18, there is no such value setup in default. Click "New" icon, put [report.url] in key field, put your site url exactly same in value field. if your site url is https://example.com:8123, then put this url in the value field.
If the above solution doesn't work, lower your wkhtmltopdf into 0.12.5
sudo dpkg -i wkhtmltox_0.12.5–1.bionic_amd64.deb
if there is lacking some of dependencies, you are better to install the latest version in the first step apt install wkhtmltopdf. After that, you just uninstall it by apt remove wkhtmltopdf and also delete the actual program /usr/local/bin/wkhtmltopdf. To verify whether it is still available by running the wkhtmltopdf command and type "which wkhtmltopdf". After everything is confirmed, go to install the lower version 0.12.5 and runing the linkage command.
sudo ln -s /usr/local/bin/wkhtmltopdf /usr/bin
sudo ln -s /usr/local/bin/wkhtmltoimage /usr/bin
install dependency for wkhtmltopdf (libjpeg-turbo8 in debian)
wget http://mirrors.kernel.org/ubuntu/pool/main/libj/libjpeg-turbo/libjpeg-turbo8_2.1.2-0ubuntu1_amd64.deb
sudo apt install ./libjpeg-turbo8_2.1.2-0ubuntu1_amd64.deb
libssl1.1 (in debian)
You should be able to use any of the listed mirrors by adding a line to your /etc/apt/sources.list like this:
deb http://security.debian.org/debian-security bullseye-security main
sudo apt install libssl1.1
libssl1.1 ubuntu
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.deb
sudo dpkg -i libssl1.1_1.1.0g-2ubuntu4_amd64.deb