README.md
This is a Heroku buildpack for bundling a compatible wkhtmltopdf binary with your environment.
0.1
0.12.5-1.bionic_amd64.deb by defaultAdd this buildpack to your Heroku application to install the wkhtmltopdf
and wkhtmltoimage binaries, and the corresponding library libwkhtmltox,
into the dynos:
$ heroku buildpacks:add https://github.com/chap/wkhtmltopdf-heroku-18-buildpack --index 1If you want to use a wkhtmltopdf version other than the default set
WKHTMLTOPDF_DOWNLOAD_URL:
heroku config:set WKHTMLTOPDF_DOWNLOAD_URL="https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.bionic_amd64.deb"You can see all the releases here: https://github.com/wkhtmltopdf/wkhtmltopdf/releases/
Remember to clean your repository cache if you are updating the version of buildpack. To do that, run:
$ heroku plugins:install https://github.com/heroku/heroku-repo.git
$ heroku repo:purge_cache -a appnameSee an example of a Rails app using wicked_pdf on heroku-18.
Most of this code was from the dscout/wkhtmltopdf-buildpack
For new applications:
For existing applications: