Skip to main content
February 24, 2021
Question

Import XML to pre-generated PDF FORMS

  • February 24, 2021
  • 1 reply
  • 481 views

I am trying to import XML data into pre-fixed PDF form. The PDF forms are elaborate and have many named fields. An example of two named fields are "Consequence" and "Cause". So, for this example i will have an XML as following : 


<multiple>
    <Causes> leak </Causes>
    <Consequences> fire and explosion </Consequences>
</multiple>
 
How do i do import this XML into specific PDF form fields programatically? I would prefer Python however i am okay if it is JavaScript
This topic has been closed for replies.

1 reply

Participating Frequently
April 7, 2021

Hi,

 

Acrobat Javascript API is something that will be helpful for this. You can refer the method “importAnXFDF” in Acrobat API Reference document https://www.adobe.com/content/dam/acom/en/devnet/acrobat/pdfs/js_api_reference.pdf for more details around this. 

 

Thanks!