Currently it is not possible in the cpp api to set the poppler-data path at runtime. This would be very useful.
No, GlobalParams must die, so it should not be exposed in any public API. A patch to expose the customPopplerDataDir parameter would be acceptable.
Not sure I understand. Which function has a customPopplerDataDir parameter other than in GlobalParams? I'm willing to write a patch for poppler-cpp but I can't find which C api it should wrap if we don't want to call GlobalParams.
Sure, you eventually need to call globalparams internally, but that doesn't mean you need to create a class that mimics globalparams, you can perfectly have a static member in document for example. I don't have the code at hand so can't say which class makes more sense but i guess document would be a strong candidate. Does this make sense?
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/poppler/poppler/issues/486.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.