Skip to content

srbartlett/wkhtmltopdf-buildpack

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wkhtmltopdf Buildpack

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

Versions

  • Buildpack: 0.2
  • wkhtmltopdf: 0.12.5 by default

NOTE: This fork of the buildpack is designed for a forked version of wkhtmltopdf which renders the header as a background. The binary for this is pulled from this repo. In hindsight this could be improved and will likly change to pull the binary from the forked wkhtmltopdf.

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/srbartlett/wkhtmltopdf-buildpack.git

If you want to use a wkhtmltopdf version other than 0.12.3, set WKHTMLTOPDF_VERSION:

heroku config:set WKHTMLTOPDF_VERSION="0.12/0.12.5/wkhtmltox_0.12.5-1.bionic_amd64.deb"

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

Troubleshooting

If you run into issues when trying to deploy with this buildpack, make sure your app is running on cedar-18

$ heroku stack

About

Heroku buildpack for WKHTMLTOPDF

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%