by varvet

GitHub Readme.md

wkhtmltopdf Buildpack

This is a Heroku buildpack for bundling a compatible wkhtmltopdf binary with your environment.

Loosely based on dscout/wkhtmltopdf-buildpack.


  • Buildpack: 1.0
  • wkhtmltopdf: 0.11.0_rc1 (default version)
    • Set heroku env variables to use a different version.


      heroku config:set WKHTMLTOPDF_URL="http://download.gna.org/wkhtmltopdf/obsolete/linux/wkhtmltopdf-0.11.0_rc1-static-amd64.tar.bz2"
      heroku config:set WKHTMLTOPDF_DOWNLOAD_SHA="b20c17284d4c03d81ac6ec3e251201da2b99830c9ac831281c8b5d841e7a6632"


This buildpack only installs wkhtmltopdf, it isn't very useful by itself. You'll probably want to use it as part of a multi-buildpack. Here is an example using the Ruby buildpack.

$ heroku buildpacks:set "https://github.com/heroku/heroku-buildpack-multi.git"
$ echo "https://github.com/heroku/heroku-buildpack-ruby.git" >> .buildpacks
$ echo "https://github.com/barsoom/wkhtmltopdf-buildpack.git" >> .buildpacks
$ git add .buildpacks
$ git commit -m "Add multi-buildpack"


If you run into issues when trying to deploy with this buildpack, make sure your app is running on Cedar with Ubuntu 14.04 (cedar-14). You can check this with:

$ heroku stack

If you are on an older stack, you can upgrade to cedar-14 with:

$ heroku stack:set cedar-14