Skip to content

Instantly share code, notes, and snippets.

@vicenterusso
Last active February 1, 2017 09:29
Show Gist options
  • Save vicenterusso/e821ef8250d52799b42c to your computer and use it in GitHub Desktop.
Save vicenterusso/e821ef8250d52799b42c to your computer and use it in GitHub Desktop.
Installing wkhtmltopdf Ubuntu 14.04
Steps:
At first install xvfb serwer:
$ sudo apt-get install xvfb
Get needed version of wkhtmltopdf from http://wkhtmltopdf.org/downloads.html For ubuntu 14.04 64-bit:
$ wget http://downloads.sourceforge.net/project/wkhtmltopdf/archive/0.12.1/wkhtmltox-0.12.1_linux-trusty-i386.deb
Install wkhtmltopdf:
$ sudo dpkg -i wkhtmltox-0.12.1_linux-trusty-i386.deb
Install dependency (if needed):
$ sudo apt-get -f install
Create symblic link in /usr/local/bin/
$ echo 'xvfb-run -a -s "-screen 0 640x480x16" wkhtmltopdf "$@"' > wkhtmltopdf.sh
$ sudo chmod a+x wkhtmltopdf.sh
$ sudo mv wkhtmltopdf.sh /usr/local/bin/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment