1 Reply Latest reply on Dec 30, 2015 4:22 AM by Karl Heinz Kremer

    How to judge if a PDF doc is with XFA by Excel VBA?

    andyl17361417

      Following is my code in Excel VBA, but there is an error: "Run-time error '438': Object doesn't support this property of method":

       

      Sub IsXFA()

          Dim app As Object, avdoc As Object, jso As Object, pageview As Object

          Set app = CreateObject("AcroExch.App")

          Set avdoc = app.GetActiveDoc

          Set jso = avdoc.GetJSObject

          If avdoc.dynamicXFAForm = True Then

              jso.console.println ("This is a dynamic XML form.")

          End If

      End Sub