Q:
In some PDF viewers, I can build the “annotation history” for a document. How can I do so with PDFNet?
A:
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:
https://www.pdftron.com/pdfnet/docs/PDFNet/html/M_pdftron_PDF_Annots_Markup_GetCreationDates.htm
You can obtain the modified date (if present) with Annot.GetDate:
https://www.pdftron.com/pdfnet/docs/PDFNet/html/M_pdftron_PDF_Annot_GetDate.htm
You can obtain the subject (if present) with Markup.GetSubject:
https://www.pdftron.com/pdfnet/docs/PDFNet/html/M_pdftron_PDF_Annots_Markup_GetSubject.htm
You can obtain the author/title (if present) with Markup.GetTitle:
https://www.pdftron.com/pdfnet/docs/PDFNet/html/M_pdftron_PDF_Annots_Markup_GetTitle.htm