Somnath, you can write a custom submit action to send DoR pdf to a rest endpoint. You can refer https://helpx.adobe.com/aem-forms/6-2/custom-submit-action-form.html for reference. Your submit action would be a hybrid of store pdf and rest submit action. For PDF generation, you need to choose option Select form template as base template to generate the Document of Record in Document of Record Template Configuration. This way you need not to provide designer created XDP, system will generate a pdf for DoR.
Thanks for your response. I see something like Submit Action to REST URL which I can configure. So that might call my custom servlet post Form submission.
As I am new to AEM Forms, so probably harping along the same lines. Unfortunately I am still not able to understand the core steps on how to use a designer generated XDP with an Adaptive Form, for generating its DoR.
So I am using AEM Forms for AEM 6.2 here is what I understand, please feel free to correct me:
A non-XFA Form can also be based on a XML Schema (XSD), when I create an Adaptive Form in AEM Forms UI.
It needs to be associated with a XDP which becomes the base template on which its PDF core structure will get generated. The XDP and XSD should have the same elements and in same sequence.
I create the DoR Base template using AEM Designer. It has a header and a footer which will appear across all my project Form PDFs. I do not understand how to apply project specific CSS and JS there. I only see styles I can apply from Designer.
I save it as XDP. Upload file to AEM Forms & Documents.
I create an Adaptive Form in AEM Forms UI (not designer) using Blank Template. Associate it with XSD and XDP.
Now I open the form, I edit it, drag and drop the XSD defined name and email text boxes in it. I also dropped a submit button on it and I saved it.
Now when I say Download Document of Records, it downloads XDP file and hence not able to open using Acrobat.
How can I see PDF with header and footer as in DoR base template, with main content as in Adaptive Form I created with Name, Email textfields and 1 Submit button ?
On Submit actions, I do not see anything like Store PDF. It has Email PDF. I am not able to see the DoR that is generated from the form at all.
I have a scenario where PDF needs to be generated from filled up forms but the PDF will NOT be stored on CRX anyway. The forms may contain PII and hence we need to store that PDF along with submitted form data into the backend database which is beyond the firewall. We have REST Services to access interface to the backend system. How can we proceed please ?