README.md
This buildpack downloads and extracts the
wkhtmltopdf binaries and works on heroku-18, heroku-20 and heroku-22 stacks.
heroku-22, v0.12.6-1 for heroku-20 stack and v0.12.5 for heroku-18 stack.v1.0 (initial release)
Cedar-14, heroku-16, and heroku-18
v2
Heroku-20
Cedar-14 and heroku-16 as they reached end of life.v3
Heroku-22
heroku-22, heroku-20 and heroku-18stack images.Just add the buildpack to your heroku app by executing:
heroku buildpacks:add https://github.com/RohanDebroy/heroku-buildpack-wkhtmltopdf.gitYou can also force this buildpack to be the first Heroku process by using the
--index option:
heroku buildpacks:add --index=1 https://github.com/RohanDebroy/heroku-buildpack-wkhtmltopdf.gitTo use a specific version of the wkhtmltopdf binary for your app on Heroku, you can include an Aptfile in the parent directory of your app. This file should contain the latest or custom download URL for the binary.
By including the Aptfile, you can bypass Heroku's stack detection and ensure that the correct version of wkhtmltopdf is downloaded during the build process.
Here are the steps to include an Aptfile in your app:
The binaries wkhtmltopdf and wkhtmltoimage will be available on /app/bin,
you can just execute /app/bin/wkhtmltopdf and /app/bin/wkhtmltoimage from your app.
MIT
For new applications:
For existing applications: