Skip to content

Instantly share code, notes, and snippets.

Embed
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,

wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.stretch_amd64.deb

  • 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:

wget http://archive.ubuntu.com/ubuntu/pool/main/libp/libpng/libpng_1.2.54.orig.tar.xz

tar xvf libpng_1.2.54.orig.tar.xz

cd libpng-1.2.54

./autogen.sh

./configure

make -j8 sudo make install

https://wkhtmltopdf.org/docs.html

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.