Bug 103570 - Expose GlobalParams in CPP api
Summary: Expose GlobalParams in CPP api
Status: RESOLVED MOVED
Alias: None
Product: poppler
Classification: Unclassified
Component: cpp frontend (show other bugs)
Version: unspecified
Hardware: Other All
: medium enhancement
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-04 13:29 UTC by Jeroen Ooms
Modified: 2018-08-21 11:03 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Jeroen Ooms 2017-11-04 13:29:11 UTC
Currently it is not possible in the cpp api to set the poppler-data path at runtime. This would be very useful.
Comment 1 Albert Astals Cid 2017-11-10 19:44:47 UTC
No, GlobalParams must die, so it should not be exposed in any public API.

A patch to expose the customPopplerDataDir parameter would be acceptable.
Comment 2 Jeroen Ooms 2017-11-10 19:50:04 UTC
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.
Comment 3 Albert Astals Cid 2017-11-10 19:57:43 UTC
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?
Comment 4 GitLab Migration User 2018-08-21 11:03:22 UTC
-- 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.