Enable resize for text markup annotations
16 Feb 20261 minute to read
Enable the resizer for text markup annotations by setting the viewer’s enableTextMarkupResizer property. This enables drag handles for text markup annotations (highlight, underline, and strikeout) so users can resize them after creation. The default value is false.
- The PDF Viewer scripts and styles must be included and the viewer initialized. See the getting-started guide for setup details.
- Set this property on the viewer instance after it is created and before interacting with annotations.
Example: Enable resizer
// Enable Text Markup resizer
viewer.enableTextMarkupResizer = true;Sample: Enable the resizer for text markup annotations
https://stackblitz.com/edit/cdl3df-8wbtuc?devtoolsheight=33&file=index.ts
NOTE
Consider adding a screenshot or short GIF showing the resizer handle for visual clarity; include descriptive alt text for accessibility.