The following code snippet illustrates how one might find some
information about a PDF document.
Set theDoc = Server.CreateObject("ABCpdf11.Doc")
theDoc.Read "c:\mypdfs\mydoc.pdf"
theVers = theDoc.GetInfo(theDoc.Root, "/Version")
theNames = theDoc.GetInfo(theDoc.Root, "/Names")
thePages = theDoc.GetInfo(theDoc.Root, "Pages")
theOutlines = theDoc.GetInfo(theDoc.Root, "outlines")
Response.Write "Version " & theVers & "<br>"
Response.Write "Names " & theNames & "<br>"
Response.Write "Pages ID" & thePages & "<br>"
Response.Write "Outlines ID " & theOutlines &
"<br>"
This might result in the following output.
Version /1.4
Names 12 0 R
Pages ID 618
Outlines ID 2169
|