21. How Do I Access Resources That Are Secured via Basic or Digest Authentication?

Documents or other resources that are secured via Basic or Digest authentication can be accessed by setting authentication credentials for PDFreactor using the API method setAuthenticationCredentials:

pdfReactor.setAuthenticationCredentials("user","password");

The credentials are set for all outgoing HTTP connections.