Skip to content

A Heroku Buildpack to install pdftk-java as a Native Image in your Slug.

License

Notifications You must be signed in to change notification settings

stevenharman/heroku-buildpack-pdftk-java-native

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pdftk-java-native

A Heroku Buildpack to install pdftk-java as a Native Image in your Slug.

How to use it

Add this Buildpack as the first Buildpack in your App. Or, at least before other Buildpacks that might need it.

$ heroku buildpacks:add --index=1 stevenharman/pdftk-java-native --app=<YOUR-APP-NAME>

On the next deploy a pdftk-java Native Image (x86_64) will be downloaded and added to your Slug. The binary (pdftk) will be placed in app/bin, which is already on the $PATH. Meaning the binary will be available as pdftk.

Configure pdftk-java version

The pdftk-java project currently publishes Native Images for versions 3.3.0 - 3.3.3. By default this Buildpack downloads and installs the 3.3.3 version. if you'd like to pin to a specific version, or use newer version when they become available, set the PDFTK_JAVA_NATIVE_VERSION Config Var. Like so:

$ heroku config:set PDFTK_JAVA_NATIVE_VERSION=3.3.3

Cached versions

This Buildpack will cache the requested version of the .zip file and re-use that between build. If you need to force a re-download of the cached file, you'll need to purge your build cache.

License

This work is licensed under MIT License.

Copyright (c) 2023 Steven Harman

About

A Heroku Buildpack to install pdftk-java as a Native Image in your Slug.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages