|
The following code snippet illustrates how one might find some
information about a PDF document.
using var doc = new Doc();
doc.Read("../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>");
This might result in the following output.
Version /1.4
Names 12 0 R
Pages ID 618
Outlines ID 2169
|