Overlapped annotation in EJ2 JavaScript Pdfviewer control

8 May 20231 minute to read

To get the overlapped annotations on a mouse click in a Syncfusion PDF Viewer, you can use the annotationCollection property of annotationSelect event.This event is triggered when the user clicks on an annotation in the PDF document.

Here is an example of how you can use the annotationSelect event to get the overlapped annotations on a mouse click in a Syncfusion PDF Viewer:

// Get overlapped annotation collections.
viewer.annotationSelect =(args) =>{
  console.log(args.annotationCollection);
}

Find the sample how to get the overlapped annotations on mouse click