Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Pull request Compare This branch is 1 commit ahead of kwaters12:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Heroku buildpack: precompiled pdftk

Based on, but modified for use with

How to install:

  1. Download PDFTK source (compiled for Heroku's Cedar Stack) from

  2. Upload the tar.gz to your own S3 bucket. Make it public. Remember the S3 URL of the tar.gz file.

  3. Clone this repo to your own.

  4. Update lib/custom/pdftk.rb source_url method to return the S3 URL from step 2.

  5. Add your cloned repo to your project's .buildpacks file.

  6. Add config vars to heroku like so

heroku config:set \
PATH=[your current PATH var]:/app/vendor/pdftk/bin \
LD_LIBRARY_PATH=[your current LD_LIBRARY_PATH var (if you have set before)]:/app/vendor/pdftk/lib

For a standard heroku configuration the above will probably look like this:

heroku config:set \
PATH=/app/bin:/app/vendor/bundle/bin:/app/vendor/bundle/ruby/2.1.0/bin:/usr/local/bin:/usr/bin:/bin:/app/vendor/pdftk/bin \

but check your path. ;)

You can’t perform that action at this time.