The following code snippet illustrates how one might find some
information about a PDF document.
using var doc = new Doc();
doc.Read(Server.MapPath("../mypics/mydoc.pdf"));
string vers = doc.GetInfo(doc.Root, "Version");
string names = doc.GetInfo(doc.Root, "/Names");
string pages = doc.GetInfo(doc.Root, "pages");
string outlines = doc.GetInfo(doc.Root, "outlines");
Response.Write($"Version {vers}<br>");
Response.Write($"Names {names}<br>");
Response.Write($"Pages ID {pages}<br>");
Response.Write($"Outlines ID {outlines}<br>");
Using doc As New Doc()
doc.Read(Server.MapPath("../mypics/mydoc.pdf"))
Dim theVers As String, theNames As String, thePages As String, theOutlines As String
theVers = doc.GetInfo(doc.Root, "Version")
theNames = doc.GetInfo(doc.Root, "/Names")
thePages = doc.GetInfo(doc.Root, "pages")
theOutlines = doc.GetInfo(doc.Root, "outlines")
Response.Write($"Version {theVers}<br>")
Response.Write($"Names {theNames}<br>")
Response.Write($"Pages ID {thePages}<br>")
Response.Write($"Outlines ID {theOutlines}<br>")
End Using
This might result in the following output.