Extract annotation text

Hello,

Attached pdf has 3 annotations. Is there any direct method to extract only the annotation title / text from this pdf or how to extract the annotation title? .Please help on this.

Thanks in advance

Test.pdf (51.5 KB)

You can visit all annotations on a PDF page as shown in the Annotation sample:

http://www.pdftron.com/pdfnet/samplecode.html#Annotation

PDF annotations don’t have title but you could use the following methods:

annot.GetContents()
annot.GetSubject() - for markup annotations - cast the annotation to a Markup annot.

For more info please see:

http://www.pdftron.com/pdfnet/html/classpdftron_1_1PDF_1_1Annot.html