Skip to content

Instantly share code, notes, and snippets.

@snahor
Created September 18, 2013 17:09
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 snahor/6612296 to your computer and use it in GitHub Desktop.
Save snahor/6612296 to your computer and use it in GitHub Desktop.
FILE = 'wkhtmltopdf-0.11.0_rc1-static-amd64.tar.bz2'
def install_wkhtmltopdf():
run('apt-get install libfontconfig libxrender1')
with cd('/usr/local/bin'):
run('wget https://wkhtmltopdf.googlecode.com/files/%s' % FILE)
run('tar xf %s' % FILE)
run('ln -s wkhtmltopdf-amd64 wkhtmltopdf')
run('rm %s' % FILE)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment