Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stevenharman/heroku-buildpack-pdftk-java-native
A Heroku Buildpack to install pdftk-java as a Native Image in your Slug.
https://github.com/stevenharman/heroku-buildpack-pdftk-java-native
Last synced: 2 days ago
JSON representation
A Heroku Buildpack to install pdftk-java as a Native Image in your Slug.
- Host: GitHub
- URL: https://github.com/stevenharman/heroku-buildpack-pdftk-java-native
- Owner: stevenharman
- License: mit
- Created: 2023-01-25T15:43:46.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-26T14:49:32.000Z (almost 2 years ago)
- Last Synced: 2025-01-03T15:45:47.772Z (11 days ago)
- Language: Shell
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pdftk-java-native
A Heroku [Buildpack][buildpacks] to install [`pdftk-java` as a Native Image][prebuilt-bins] 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.```console
$ heroku buildpacks:add --index=1 stevenharman/pdftk-java-native --app=
```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][config-vars].
Like so:```console
$ heroku config:set PDFTK_JAVA_NATIVE_VERSION=3.3.3
```### Cached versions
This Buildpack will [cache][build-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][build-cache].## License
This work is licensed under [MIT License](./LICENSE).
Copyright (c) 2023 Steven Harman
[build-cache]: https://devcenter.heroku.com/articles/slug-compiler#build-cache "Heroku Build cache"
[buildpacks]: https://devcenter.heroku.com/articles/buildpacks "Heroku Buildpacks"
[config-vars]: https://devcenter.heroku.com/articles/config-vars "Configuration and Config Vars"
[prebuilt-bins]: https://gitlab.com/pdftk-java/pdftk#pre-built-binaries "Pre-built binaries for pdftk-java"