Quantcast
Channel: VBForums - ASP, VB Script
Viewing all articles
Browse latest Browse all 688

Cannot retrieve the fields from pdf using VBSCRIPT

$
0
0
Have this PDF document http://www.cic.gc.ca/english/pdf/kit...0008ENU_2D.pdf

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

But have result: 0 fields
Please help to retrieve all fields from this PDF file

Viewing all articles
Browse latest Browse all 688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>