Skip to content

Instantly share code, notes, and snippets.

@isogram
Created April 8, 2016 09:50
Show Gist options
  • Star 23 You must be signed in to star a gist
  • Fork 7 You must be signed in to fork a gist
  • Save isogram/1b39fa91f34e35e66c84fe066cc37577 to your computer and use it in GitHub Desktop.
Save isogram/1b39fa91f34e35e66c84fe066cc37577 to your computer and use it in GitHub Desktop.
How to manually install Wktohtmlpdf and Wkhtmltoimage in Ubuntu Server

How to Install Wkhtmltopdf and Wkhtmltoimage in Ubuntu

wget http://download.gna.org/wkhtmltopdf/0.12/0.12.3/wkhtmltox-0.12.3_linux-generic-amd64.tar.xz
tar -xvf wkhtmltox-0.12.3_linux-generic-amd64.tar.xz
cd wkhtmltox/bin/
sudo mv wkhtmltopdf  /usr/bin/wkhtmltopdf
sudo mv wkhtmltoimage  /usr/bin/wkhtmltoimage
@ckarrie
Copy link

ckarrie commented Nov 8, 2016

Great! Thank you!

@bwasmith
Copy link

bwasmith commented Jun 5, 2017

updated wget:

wget https://downloads.wkhtmltopdf.org/0.12/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz

@fliespl
Copy link

fliespl commented Jul 27, 2017

Another update:
https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz

@parhs
Copy link

parhs commented Aug 17, 2017

Is only the bin needed?

@zloynemec
Copy link

Updated script for 0.12.4:

wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
tar xf  wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
cd ./wkhtmltox
cp -R ./* /usr/

@smash-wp
Copy link

Little correction for comment above.

cd ./wkhtmltox - wrong version

cd ./wkhtmltox/bin - right version

@kjellberg
Copy link

Amazing, thanks!

@danielmcfarland
Copy link

Life saver, needed the latest version and this provided exactly what I needed

@jiwom
Copy link

jiwom commented Jul 18, 2018

Thanks! Works for me. I just need to change the path to
sudo mv wkhtmltopdf /usr/local/bin/wkhtmltopdf
sudo mv wkhtmltoimage /usr/local/bin/wkhtmltoimage

and also put this on our server
sudo apt-get install libfontconfig1 libxrender1

@enriquezcj
Copy link

#fliespl muchas gracias, y gracias a todos... por sus aportes sigue activo y funciona bien...
https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment