Reputation: 4320
I'm trying to use a specific version of pdftotext (version 3.03) on Heroku. I'm using https://github.com/carwow/heroku-buildpack-pdftotext buildpack which by default uses version 0.57 (from what I'm seeing it's including Poppler version 0.57, but pdftotext version is 0.57 as well). I'm assuming, from looking at https://github.com/carwow/heroku-buildpack-pdftotext/blob/master/scripts/build_pdftotext, that this buildpack allows to use specific version of Poppler by providing either POPPLER_VERSION
or POPPLER_TARBALL_URL
variables. The question is - how can I pass these variables to the build step?
What I've tried so far:
POPPLER_VERSION
and POPPLER_TARBALL_URL
in Config Vars
, deployingenv
folder within my application, setting ENV_DIR
to env
, creating POPPLER_VERSION
and POPPLER_TARBALL_URL
files containing appropriate values within env
folder, deployingIn either case, when running /app/bin/pdftotext
version 0.57 is still being reported
Upvotes: 0
Views: 341
Reputation: 4320
In case that anybody runs into this question - the answer is that I'm dumb and I expected Heroku to build binary using provided Makefile. But why should Heroku build it?
As such, I've forked the https://github.com/carwow/heroku-buildpack-pdftotext to https://github.com/eithed/heroku-buildpack-pdftotext, updated the script to use cmake, built it, switched Heroku to use my buildpack - version 20.10.0 is correctly installed.
Upvotes: 1