Using PDFreactor in a Java application, or using the webservice with one of the wrapper APIs the license key is set as a string through the API method setLicenseKey(). Just paste the content of "licensekey.xml" as the only parameter. The license key has to be set before rendering the document.
Note: For better readability the license keys of these samples have been arranged over multiple lines. However this not neccessary for the code to function. Under normal circumstances the whole string would be in one line.
Example for Integration in a Java application:
PDFreactor pdfReactor = new PDFreactor();
pdfReactor.setLicenseKey("<license><licensee>"
+ "<name>RealObjects GmbH</name></licensee>"
+ "<product>PDFreactor</product><majorversion>4</majorversion>"
+ "<minorversion>0</minorversion>"
+ "<licensetype>Evaluation</licensetype>"
+ "<expirationdate>2009-12-31</expirationdate>"
+ "<signatureinformation><signdate>2010-03-23 17:58</signdate>"
+ "<signature>302c02141c6f637afc13e0e78134e77d68925a05b789a18202140"
+ "cd3002988cbb155aafb351211840df76dd7781a</signature>"
+ "<checksum>1307</checksum></signatureinformation></license>");
pdfReactor.renderDocument(inputSource, outputStream);
Example for PHP wrapper:
$pdfreactor = new PDFreactor();
$pdfreactor->setLicenseKey("<license><licensee>"
."<name>RealObjects GmbH</name></licensee>"
."<product>PDFreactor</product><majorversion>4</majorversion>"
."<minorversion>0</minorversion>"
."<licensetype>Evaluation</licensetype>"
."<expirationdate>2009-12-31</expirationdate>"
."<signatureinformation><signdate>2010-03-23 17:58</signdate>"
."<signature>302c02141c6f637afc13e0e78134e77d68925a05b789a18202140"
."cd3002988cbb155aafb351211840df76dd7781a</signature>"
."<checksum>1307</checksum></signatureinformation></license>");
$result = $pdfreactor->renderDocumentFromContent($content);
Note: When using the commandline interface for evaluation purposes just copy the licensekey.xml to the same directory as pdfreactor.jar.