google-cloud-run-poppler-binaries
v0.0.3
Published
Binaries for Poppler for Google Cloud Run functions (Ubuntu Linux). The binaries are installed using apt-get inside a fixed Docker image that Google Cloud Run functions use (us-central1-docker.pkg.dev/serverless-runtimes/google-22/runtimes/nodejs18@sha256
Readme
This package bundles both built binaries and extra libraries in an npm package to be able to run node-poppler in a Google Cloud Run Node.js based serverless runtime.
node-poppler only comes with Windows binaries and they recommend installing poppler-utils and poppler-data separately for Linux. This doesn't work well in the case of serverless runtimes where we don't necessarily have the control of the runtime environment unless we roll out our own image.
In order for the binaries (such as pdftocairo) to find required libraries not available by default in the Google Cloud Run Node.js runtime, we also need to supply LD_LIBRARY_PATH pointing to the lib directory of this module.
The contents of this package were retrieved using apt-get install poppler-utils poppler-data in us-central1-docker.pkg.dev/serverless-runtimes/google-22/runtimes/nodejs18@sha256:023bea2a56aa1a5dfb6b760a79754facfa2567f328c114abb3b892cc8230b2e8. Compatibility with other environments is not guaranteed.
