Is it possible to convert AEM 6 form into PDF? | Community
Skip to main content
Level 2
October 16, 2015
Solved

Is it possible to convert AEM 6 form into PDF?

  • October 16, 2015
  • 2 replies
  • 1534 views

I have a requirement to create a form, let users fill it out, and then email it to the user as a PDF. 

I am using AEM 6 and can create the form easily mimicking the Geometrixx Gov sample forms. But how can I save the collected data into PDF? In the submit action, I only see these options:

Submit to REST endpoint
Store content action
Email action
Submit to Forms workflow

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

If you have AEM with Adobe LiveCycle ES - you could pass the data to LC ES to create a PDF document.  Here is an artilce showing that use case: 

https://helpx.adobe.com/experience-manager/using/integrating-livecycle-cq-applications.html

Without LC - to create a PDF that captures the submitted data - you can build a custom solution.

First - post the AEM 6 form data to a custom OSGi service. See this community article to learn how to do that:

https://helpx.adobe.com/experience-manager/using/posting-aem-6-form-data.html

Then build a custom AEM PDF service. You can do that using a PDF lib like PDFBOX:

https://helpx.adobe.com/experience-manager/using/creating-custom-experience-manager-pdf.html

2 replies

Runal_Trivedi
Level 6
October 16, 2015

iText is another handy 3rd party API available to create PDF with whatever content you need.

http://hmkcode.com/itext-html-to-pdf-using-java/

http://www.rgagnon.com/javadetails/java-html-to-pdf-using-itext.html

smacdonald2008
smacdonald2008Accepted solution
Level 10
October 16, 2015

If you have AEM with Adobe LiveCycle ES - you could pass the data to LC ES to create a PDF document.  Here is an artilce showing that use case: 

https://helpx.adobe.com/experience-manager/using/integrating-livecycle-cq-applications.html

Without LC - to create a PDF that captures the submitted data - you can build a custom solution.

First - post the AEM 6 form data to a custom OSGi service. See this community article to learn how to do that:

https://helpx.adobe.com/experience-manager/using/posting-aem-6-form-data.html

Then build a custom AEM PDF service. You can do that using a PDF lib like PDFBOX:

https://helpx.adobe.com/experience-manager/using/creating-custom-experience-manager-pdf.html