Get a Particular Annotation from a PDF
Contents
[
Hide
]Get All Annotations from Page in a PDF explained how to get all annotations on a page, or in an entire document. This article explains how to get just one annotation.
Annotations are associated with individual pages and stored in a Page object’s AnnotationCollection collection. To get a specific annotation, specify its index. This returns an Annotation object that needs to be cast to a particular annotation type, for example TextAnnotation.
The following code snippet shows how to get a particular annotation and its properties.