Search results

Customize the annotation selector in JavaScript (ES5) PDF Viewer control

08 May 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';

Find the sample how to customize the annotation selector