Skip to content

hoaronal-project/devskill

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.3 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/dscout/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.4"

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-14 or heroku-16. You can check this with:

$ heroku stack

heroku stack:set heroku-16 --app wkhtmltopdf-api heroku buildpacks:add heroku/java --app wkhtmltopdf-api heroku buildpacks:add --index=1 https://github.com/doanhoa93/heroku-buildpack-wkhtmltopdf.git --app wkhtmltopdf-api heroku plugins:install https://github.com/heroku/heroku-repo.git heroku repo:purge_cache -a wkhtmltopdf-api

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published