Skip to content

Instantly share code, notes, and snippets.

@jaydorsey
Last active December 10, 2024 12:45
Show Gist options
  • Save jaydorsey/e96b93ecd102063937f630cde5689815 to your computer and use it in GitHub Desktop.
Save jaydorsey/e96b93ecd102063937f630cde5689815 to your computer and use it in GitHub Desktop.
Notes on Poppler/ActiveStorage on Heroku

To install poppler on Heroku, you need to:

  • Include the apt & activestorage buildpacks
  • Include the apt file with poppler dependencies
  • Include gem 'poppler' in your Gemfile

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

{
"buildpacks": [
{ "url": "heroku-community/apt" },
{ "url": "heroku/nodejs" },
{ "url": "heroku/ruby" },
{ "url": "https://github.com/heroku/heroku-buildpack-activestorage-preview" }
]
}
libgirepository-1.0-1
libgirepository1.0-dev
libpoppler-glib-dev
@tygern
Copy link

tygern commented Oct 25, 2022

Did you ever find a resolution?

@coezbek
Copy link

coezbek commented Dec 10, 2024

Rails uses the ppftoppm tool provided by poppler-utils, so in an Debian/Ubuntu-based image you need apt-get install poppler-utils

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment