Search results

Customize the annotation selector

06 Jun 2023 / 1 minute to read

To customize the annotation selector in Syncfusion PDF Viewer, you can use the annotationSelectorSettings property of the PdfViewer control.

Here is an example of how you can customize the selector of the shape annotation:

Copied to clipboard
 <button id="annotationSelector">annotationSelector</button>
Copied to clipboard
document.getElementById('annotationSelector').addEventListener('click', () => {
  viewer.rectangleSettings.annotationSelectorSettings.resizerShape = 'Circle';
  viewer.annotationModule.editAnnotation(viewer.annotationCollection[0]);
});

Find the sample how to customize the annotation selector