Using the configuration property requestHeaders, you can set request headers for all outgoing HTTP connections of PDFreactor, used to load the document and its resources like images and style sheets. Similarly you can set cookies using the configuration property cookies.

Both expect a key-value-pair as parameters and can be called multiple times to set multiple headers or cookies. Existing keys will be overwritten.

config.setRequestHeaders(new KeyValuePair("User-Agent", "PDFreactor"));
config.setCookies(new KeyValuePair("name", "Peter"));

This functionality can be used to pass a session ID from the integration to PDFreactor.