Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

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

Avatar

Level 4

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