1. How Do I Set the License Key?

PDFreactor doesn't necessarily need to be run with a license key. When no license key is found, PDFreactor runs in evaluation mode. In this mode, several pages containing information about PDFreactor are inserted randomly into the resulting PDF document.

After purchasing a PDFreactor license, RealObjects provides you a license key file in XML format. The license key can be set as a string using the setLicenseKey method of the PDFreactor class.

Example:

String licensekey = "<license>... your license ...</license>";
pdfReactor.setLicenseKey(licensekey);

Note:

You can ensure that no eval or license notices are added to PDF documents using the following method:

pdfReactor.setThrowLicenseExceptions(true)

This forces PDFreactor to throw an exception instead of adding notices to PDF documents.