Documents or other resources that are secured via Basic or Digest authentication can be accessed by setting authentication credentials for PDFreactor using the authenticationCredentials configuration property:

config.setAuthenticationCredentials(new KeyValuePair("user", "password");

The credentials are set for all outgoing HTTP connections.