Search results

Lock square or rectangle annotations in React PDF Viewer component

25 Jan 2023 / 1 minute to read

The PDF Viewer library allows you to lock the rectangle or square annotations using the isLock property in the rectangleSettings.

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

Step 2: Add the following code snippet to lock the rectangle or square annotations.

Copied to clipboard
   // lock annotation
   rectangleSettings={{ isLock: true }}
   style={{ height: '640px' }}>

Find the Sample how to lock square or rectangle annotations