Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

Reconsitute completed PDF from original PDF and user XML

Avatar

Former Community Member
Is it possible to have the user submit an XML file via email, then merge this data with the original PDF form to produce a PDF that looks like the one user filled out?



My aim to get completed PDFs to someone without users having to email a large PDF.
1 Reply

Avatar

Former Community Member
Matthew,



this is a subject that I've been toying with in the past couple of weeks - the short answer is yes. You just need to create a duplicate pdf (identical hierarchy, field names, etc.) for yourself. Place a button object on that copy and add the following javascript to it on the click event;



xfa.host.importData()



This will allow you to browse for the xml file and open it within the form.



**please note that if you're using Adobe Reader, it appears that the form must have Reader Extensions (i.e. a license). Alternatively, the form must be opened with Adobe Acrobat, otherwise the import data function will not work