0 Replies Latest reply on Jul 17, 2009 12:32 AM by Registerkaro

    Automate filling a PDF Form

    Registerkaro

      Hi All

       

      I have Adobe acrobat Standard installed on my system and i want to automate filling a PDF Form.

      While doing this am not able to get any of the field names. Here is the peice of code i used, can any one help me out what i need to do?

       

      Set AcroExchApp = CreateObject("AcroExch.App")
        AcroExchApp.Show
        Set AcroExchAVDoc = CreateObject("AcroExch.AVDoc")
        OK = AcroExchAVDoc.Open(Filename,"")
        Set PDDoc = AcroExchAVDoc.GetPDDoc()
        Set jso = PDDoc.GetJSObject
        Set AFormAut = CreateObject("AFormAut.App")
        Set Fields = AFormAut.Fields
        'Set f = jso.getField(FieldName)

        For Each Field In Fields
            FieldName = Field.Name
            Set f = jso.getField(FieldName)
            f.value = "Hello"

        Next

       

       

      Here am not able to enter into the loop.

       

      One more thing when ever i get Field name using Field.Name method i want to high light that particular field. Is any one has any kind of method for highlighting all the fields.

       

      Thanks in Advance..