@snacdonald2008, I did not get your last post on the thread.
This one the list for an end to end community AEM article.
The adobe helpx at http://helpx.adobe.com/aem-forms/6/overview-aem-document-services.html identifies four services available in the Output services namely generatePDFOuput2, generatePrintedOutput2, sendToPrinter, transformPDF. But the OutputService java doc available at http://helpx.adobe.com/aem-forms/6/javadocs/com/adobe/fd/output/api/OutputService.html does not have the above services but instead have 6 other methods, 2 for generating PDF, 2 for generating Printed Output(Post Script, etc) and 2 for generating (1 for pdf and 1 for printed) documents in batch.
I have not understood the use for
setXci(Document xci) in the PrintedOutputOptions API, Also how to send the generated Post Script to a local or networked printer, is there a API to set the printer parameters.
Thanks for the guidance, Now after building the code and deploying the same in AEM, I am facing the following issue.
I had placed by XDP file in the the following path in dam /content/dam/formsanddocuments/NedbankInc/ and set the same as content root for the PDF options object before calling the generatePDFOutput method.
But I get the following exception
Caused by: java.io.FileNotFoundException: \content\dam\formsanddocuments\NedbankInc\CurrentAccountForm.xdp (The system cannot find the path specified)
Sample code for using Output Service in AEM for generating PDF is on following page
Output Service API classes/interface can be found in Client SDK jar at this maven repository. http://repo.adobe.com/nexus/content/groups/public/com/adobe/aemfd/aemfd-client-sdk/1.0.2/