wkhtmltopdf-heroku-18-buildpack

by chap

GitHub Readme.md

wkhtmltopdf heroku-18 Buildpack

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

Versions

  • Buildpack: 0.1
  • wkhtmltopdf: 0.12.5-1.bionic_amd64.deb by default

Usage

Add 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 1

If 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/

Clearing Repo Cache

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 appname

Example

See an example of a Rails app using wicked_pdf on heroku-18.

Credits

Most of this code was from the dscout/wkhtmltopdf-buildpack