Answer the question
In order to leave comments, you need to log in
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
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question