Q: How can I select a given annotation on a page in jPDFViewer, jPDFNotes or jPDFEditor?
A: You will need to work with the IAnnotationManager, which manages the selection cycle for annotations.
IAnnotationManager annotmanager = viewerBean.getAnnotationManager(); |
This interface manages the selection cycle for annotation components on a page and allows to programmatically select and deselect annotations on a page.
Select an Annotation on a page:
selectAnnotationComponent(AnnotationComponent)
Deselect an Annotation on a page:
deselectAnnotationComponent(AnnotationComponent)
The annotation component can be obtained from an annotation by calling the getComponent() method and cast it to AnnotationComponent.