Skip to content

Heroku buildpack for WKHTMLTOPDF on the Heroku-18 stack

License

Notifications You must be signed in to change notification settings

chap/wkhtmltopdf-heroku-18-buildpack

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Heroku buildpack for WKHTMLTOPDF on the Heroku-18 stack

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%