Assuming that you are on AEM Forms 6.3 and by editable PDF you mean a PDF which can be field by client and data extracted and submitted to an end point upon submission (click of a button), you can use FormsService to generate an interactive PDF.
Hope it helps.
Hi ..Thank you for your note...i think i was not clear enough .......Let me try to explain..
I have a third party CRM system, this system has the user data ...It will call an AEM endpoint and pass the customer data along with the form name. In AEM forms (Yes i am using 6.3) i need some sort of api to merge the XDP along with the data sent, and create an editable pdf ( only the data supplied as part of the original request ) needs to be editable.
This editable pdf then needs to be sent back to CRM , and CRM routes it to the Customer, who might choose to either edit it or simply keep it as is and take a printout for it.
Hi there, I went through Forms service, i think renderPDFForm is what i am looking for. I will give it a shot and see.
Any expert advise on this is welcome..
Thanks for your help..!!!
Yes, you can use FormsService API for generating interactive PDF.
byte xdpData = (data);
Document docData = new Document(xmlData);
PDFFormRenderOptions options = new PDFFormRenderOptions();
options.setContentRoot(xdpLocation); // location of XDP
Document docPDF = formsService.renderPDFForm(fileName,docData,options);
byte result = IOUtils.toByteArray(docPDF.getInputStream());