[poppler] custom POPPLER_DATADIR (at runtime)

Jonathan Kew jonathan_kew at sil.org
Fri Jan 9 04:31:28 PST 2009


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: customPopplerDataDir-corrected.diff
Type: application/octet-stream
Size: 2851 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/poppler/attachments/20090109/a53be83d/attachment.obj 
-------------- next part --------------





More information about the poppler mailing list