0

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

Dijkgraaf
  • 11,049
  • 17
  • 42
  • 54
EM DR
  • 1
  • 1
  • Welcome to Stackoverflow. That is a very broad question, and likely to get closed. What research have you done? e.g. Have you looked at https://stackoverflow.com/questions/2252726/how-to-create-pdf-files-in-python – Dijkgraaf Feb 24 '21 at 22:02
  • I have been researching this issue for a week and have looked at reportlab and xhtml2pdf and this import XML into a predefined PDF is unavaliable. I have managed to create pdfs and even pdf from xml using these. But what I am looking for is importing xml into PDF forms fields.(the pdf is already created in ADOBE ACROBAT PRO with form fields) – EM DR Feb 24 '21 at 23:56
  • I have been researching this issue for a week and have looked at reportlab and xhtml2pdf and this import XML into a predefined PDF is unavaliable. I have managed to create pdfs and even pdf from xml using these. But what I am looking for is importing xml into PDF forms fields.(the pdf is already created in ADOBE ACROBAT PRO with form fields) @Dijkgraaf sorry, it seems i forgot to tag you – EM DR Mar 04 '21 at 08:27

0 Answers0