Skip to content

Instantly share code, notes, and snippets.

@ahmadhasankhan
Last active April 17, 2019 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahmadhasankhan/7fd1fcd743fdac8472f04c72289f24cf to your computer and use it in GitHub Desktop.
Save ahmadhasankhan/7fd1fcd743fdac8472f04c72289f24cf to your computer and use it in GitHub Desktop.
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