Enable resize for text markup annotations

13 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 TextMarkup Resizer.
viewer.enableTextMarkupResizer = true;

Sample: Enable the resizer for text markup annotations

NOTE

Consider adding a screenshot or short GIF showing the resizer handle for visual clarity; include descriptive alt text for accessibility.