E
E
Emil Revencu2014-03-06 16:06:14
Adobe Acrobat
Emil Revencu, 2014-03-06 16:06:14

How to get a list of fields from a PDF file using VBSCRIPT?

I have a PDF file
My code:

FileNm = "IMM0008ENU_2D.pdf" 'File location
Set gApp = CreateObject("AcroExch.app")
Set avDoc = CreateObject("AcroExch.AVDoc")
  If avDoc.Open(FileNm, "") Then
  Set PDFForm = CreateObject("AFormAut.App") 
  set x=PDFForm.Fields
  wscript.echo "total fields:",x.count
        For Each myField In x
        wscript.echo myField.Name
              Next
  End If
avDoc.Close (True) 
Set gApp = Nothing
Set avDoc = Nothing
Set PDFForm = Nothing

In the answer I receive "zero" fields.
How to get form data from this PDF file (field names, values)?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question