Identify added annotation in EJ2 TypeScript Pdfviewer control

8 May 20231 minute to read

The PDF Viewer library allows you to identify whether the added annotations in PDF document is UI drawn, imported or existing annotation. Annotation mode can be identified using the annotationAddMode property of annotationSelect event.

Step 1: Follow the steps provided in the link to create simple PDF Viewer sample.

Step 2: The following code snippet explains how to identify added annotation mode.

viewer.annotationSelect =(args) =>{
console.log(args.annotationAddMode);
}

Find the Sample how to identify added annotation mode