How do I construct the annotation history for a document?


In some PDF viewers, I can build the “annotation history” for a document. How can I do so with PDFNet?


You can traverse annotations as shown in the annotation sample:

Each annotation may have optional creation date, modified date, subject, or author.

You can obtain the creation date (if present) with Markup.GetCreationDates:

You can obtain the modified date (if present) with Annot.GetDate:

You can obtain the subject (if present) with Markup.GetSubject:

You can obtain the author/title (if present) with Markup.GetTitle: