How to Install wkhtmltopdf & wkhtmltoimage on Ubuntu 20.04 | 18.04 | 16.04

Karan Goyal
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

--

--

Karan Goyal
Karan Goyal

Written by Karan Goyal

Full Stack Developer, Top Rated on Upwork, Worked on 90+ jobs in past 9 months and all jobs are rated 5 stars, coding is fun, and always looking forward to code

Responses (2)