Expand my Community achievements bar.

SOLVED

AEM Forms-Addon Creating form with multiple attachments

Avatar

Level 5

Hi Team

 

We are working on Completely AEM Forms-Add-on .Our requirement each form users can view as pdf before submitting the newly creating adaptive form , Can we use any OOTB feature for each form preview as consolidated PDF which include attached files in the adaptive form .

 

Example : Adaptive form attached person photo and resume we need generate consolidated pdf along with form fields with attached photo and resume as single/consolidate pdf before form submitting.

 

 

Regards

Vara

1 Accepted Solution

Avatar

Correct answer by
Employee

Hi @varaande ,

 

Could you confirm the AEM version, and whether you are using core components based Adaptive Forms.

 

Is you are using Core components based Adaptive Forms, you can use the generateDoR API defined at: https://developer.adobe.com/experience-cloud/experience-manager-apis/api/stable/forms/ to generate the PDF for the form data, and display it to the end-user for review before the submission.

View solution in original post

4 Replies

Avatar

Correct answer by
Employee

Hi @varaande ,

 

Could you confirm the AEM version, and whether you are using core components based Adaptive Forms.

 

Is you are using Core components based Adaptive Forms, you can use the generateDoR API defined at: https://developer.adobe.com/experience-cloud/experience-manager-apis/api/stable/forms/ to generate the PDF for the form data, and display it to the end-user for review before the submission.

Avatar

Level 5

Hi Sudhansh

 

Currently we are using the AEM 6.5.19(on-premises)  with corresponding AEM OSGi-Forms add-on package using Adaptive form Component which are AEM Forms-Addon (i believe not AEM forms Core components )

 

Challenge we are facing excel files attached  in the adaptive form which having multiple sheets ,To generating consolidated pdf is challenging for us with client expected performance/response time  .

varaande_0-1709133949854.png

 

 

 

 

 

Avatar

Employee

If you are on Windows - you can use PDF Generator to convert all sheets in an Excel: https://experienceleague.adobe.com/docs/experience-manager-65/content/forms/administrator-help/work-...

 

and then using Assembler stitch the PDFs together.

Avatar

Employee Advisor

You will have to write custom code to assemble the pdf files and show the pdf using a custom component 

the custom component to display the pdf is documented