How to Install wkhtmltopdf & wkhtmltoimage on Ubuntu 20.04 | 18.04 | 16.04
1 min readNov 27, 2020
Ubuntu 20.04:
wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.focal_amd64.debsudo apt install ./wkhtmltox_0.12.6-1.focal_amd64.deb
Ubuntu 18.04:
wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.bionic_amd64.debsudo apt install ./wkhtmltox_0.12.6-1.bionic_amd64.deb
Ubuntu 16.04:
wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.xenial_amd64.debsudo apt install ./wkhtmltox_0.12.6-1.xenial_amd64.deb
A successful output looks like this:
You can confirm installation using:
wkhtmltopdf --version
and the output will be like
wkhtmltopdf 0.12.5 (with patched qt)
Test it using
wkhtmltopdf https://google.com google.pdf
Thanks for reading, don’t forget to hit like