Expand my Community achievements bar.

AEM 6.5 OSGi on premise - Generate Interactive PDF instead of flat PDF

Avatar

Level 5

Hi Everyone,

I am rendering an XDP template form as interactive HTML form in the browser. The user fills in the form and the data is sent to the server as xml data.

Currently the Output Service is used to generate a flat PDF and saved in the filesystem using the code below:

pdfOptions.setLinearizedPDF(true);
com.adobe.aemfd.docmanager.Document generatedPDF = outputService.generatePDFOutput(xdpTemplate, xmlDataDoc, pdfOptions);

How can I rewrite this code to generate an interactive PDF instead of a flat PDF?

Thanks,

Leena

0 Replies