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.
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...