Search code examples
c#abcpdf

ABC pdf, use specific proxy server for Gecko


Is it possible to configure which web proxy server and credentials the Gecko engine uses to convert HTML to PDF in ABC PDF.

I cannot find any option to set this up in the settings. We are using the engine in a service and would prefer the proxy details be programmatically supplied rather than merely using the proxy that the service user happens to be configured with.

Thanks


Solution

  • Gecko configuration

    The Gecko engine contains a number of preferences that can be configured. There are a set of .js files in the "XULRunner??_?\defaults\pref" folder that are loaded in alphabetical order when it starts. Each file contains a set of preferences. So by adding your own .js file to this folder, you can add in your own settings.