Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

Is it possible to convert AEM 6 form into PDF?

Avatar

Level 2

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

1 Accepted Solution

Avatar

Correct answer by
Level 10

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

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

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