Search results

Identify added Annotation mode

26 Nov 2021 / 1 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.

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

Find the Sample how to identify added annotation mode