To install poppler on Heroku, you need to:
- Include the apt & activestorage buildpacks
- Include the apt file with poppler dependencies
- Include
gem 'poppler'
in yourGemfile
This still breaks with an error:
GObjectIntrospection::RepositoryError::TypelibNotFound: Typelib file for namespace 'Poppler'
Related issue here which also includes a link to a PR which is supposed to resolve the issue. Waiting on merge into the build pack
Rails uses the ppftoppm tool provided by poppler-utils, so in an Debian/Ubuntu-based image you need
apt-get install poppler-utils