Skip to Content
Menu
This question has been flagged
2 Replies
1639 Views

Hello,

Install documentation says that wkhtmltopdf "must be installed manually in version 0.12.5".

Docker images are using author packages instead of official Debian packages.


Can we use v0.12.6-1 or v0.12.6-2 from official Debian packages instead of author packages?


Avatar
Discard
Author

Rau Carnes:

The sentence "The version of wkhtmltopdf available in Debian/Ubuntu repositories does not support headers and footers (requires patched QT version), so it must be downloaded from the project's page." on wiki page is from 2016. In 2016 Debian release was v8.0 and it shipped wkhtmltopdf v0.12.1-2. Currently Debian ships v0.12.6-1 with stable release.

FAIZAL EMAM:

Thanks for the instructions but is there any downside to use official Debian packages? e.g. something dropped in v0.12.6 that is in v0.12.5 or some flags used in author's build but not used in Debian build...


Best Answer

To install the official Debian package, you can use the following command:


sudo apt-get update
sudo apt-get install wkhtmltopdf

This will install the latest version of wkhtmltopdf available in the Debian repositories. 

After installing, you can check the version installed by using the following command:


wkhtmltopdf --version


If you encounter any issues with the installation, you can try uninstalling the author packages before installing the official Debian package. 

Note that the official Debian package may not always be the latest version available, so if you require a specific version or feature, you may need to download and install the author package manually.

Avatar
Discard
Best Answer

Have you seen https://github.com/odoo/odoo/wiki/Wkhtmltopdf ?

The version of wkhtmltopdf available in Debian/Ubuntu repositories does not support headers and footers (requires patched QT version), so it must be downloaded from the project's page.

Avatar
Discard