On 9 Jan 2009, at 11:10, Jonathan Kew wrote:
I'd like to be able to set the POPPLER_DATADIR at runtime from the application using poppler, rather than having this fixed at configure time; this would be particularly helpful for building standalone, relocatable applications for platforms such as Windows and Mac.A simple way to allow this, I think, would be to add an optional path parameter to the GlobalParams constructor; this will default to NULL, in which case the existing behavior will be unchanged, but if the client passes a string here then that will be used in place of the compiled-in path.The attached patch attempts to do this; please consider adding this, or some other way to achieve the same goal. Thanks!
That version of the patch had a couple of errors (missing an instance variable declaration, used delete instead of delete[]). Corrected patch is attached here. Apologies for the noise.
Jonathan
customPopplerDataDir-corrected.diff
Description: Binary data
_______________________________________________ poppler mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/poppler
