Have this PDF document http://www.cic.gc.ca/english/pdf/kit...0008ENU_2D.pdf
But have result: 0 fields
Please help to retrieve all fields from this PDF file
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 = NothingPlease help to retrieve all fields from this PDF file