4 Replies Latest reply on Feb 27, 2008 1:33 PM by Patrick Leckey

    Import XML

    Level 1
      I created multiple forms (up to a 100). One form is a list of users...I export this info to xml. I then need to import this xml file into the other 99 files without having to open them all. Is there a quick way to do this?
        • 1. Re: Import XML
          Patrick Leckey Level 3
          Read the Acrobat SDK Documentation relating to the JavaScript API. You can create a script in VBScript that will automate this process using the importXFAData method through the VB JSObject.
          • 2. Re: Import XML
            Level 1
            ok...well I will see what I can do with that
            • 3. Re: Import XML
              Level 1
              PDL...do you have any code samples on this? I'm having a tough time figuring it out
              • 4. Re: Import XML
                Patrick Leckey Level 3
                There are plenty of samples that come with the SDK that demonstrate how to achieve different parts of this solution, but off the top of my head ...

                OPTION EXPLICIT

                DIM gAVDoc, gPDDoc, jso

                SET gAVDoc = CreateObject("AcroExch.AVDoc")

                IF gAVDoc.Open("test.pdf", "JS Test") THEN
                SET gPDDoc = gAVDoc.GetPDDoc
                SET jso = gPDDoc.GetJSObject
                gAVDoc.Close 0
                END IF

                Your solution will have to be more robust, and everything you need (including setting the output path via the registry) is available in the documentation and samples, but the above should get you started.