Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Install Wkhtmltopdf 0.12.5–1 on Ubuntu 18.4
sudo apt-get --purge remove wkhtmltopdf
sudo apt autoremove
sudo apt update

Install Wkhtmltopdf 0.12.5–1

  • Download Wkhtmltopdf package for Debian 9 from repository,


  • Install Wkhtmltopdf package,

sudo dpkg -i wkhtmltox_0.12.5–1.stretch_amd64.deb

  • Install dependency package,

sudo apt install -f

  • Identify the version wkhtmltopdf --version

  • Install wkhtmltopdf dependency:


tar xvf libpng_1.2.54.orig.tar.xz

cd libpng-1.2.54



make -j8 sudo make install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.