Skip to content

Instantly share code, notes, and snippets.

@kvz
Created September 14, 2011 14:58
Show Gist options
  • Save kvz/1216790 to your computer and use it in GitHub Desktop.
Save kvz/1216790 to your computer and use it in GitHub Desktop.
Installing wkhtmltopdf as static is faster & dependency free
arch=i386
uname -m |grep 64 && arch=amd64
[ -d /usr/local/bin/ ] || mkdir -p /usr/local/bin/
wget -O /usr/local/bin/wkhtmltopdf.tar.bz2 http://wkhtmltopdf.googlecode.com/files/wkhtmltopdf-0.9.9-static-${arch}.tar.bz2
cd /usr/local/bin/
tar jxvf /usr/local/bin/wkhtmltopdf.tar.bz2
mv wkhtmltopdf-${arch} wkhtmltopdf
chmod 755 wkhtmltopdf
cd -
wkhtmltopdf --help && echo "You're welcome Carl"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment