Syncfusion AI Assistant

How can I help you?

Resize text markup annotations in ASP.NET Core PDF Viewer

28 Feb 20261 minute to read

The PDF Viewer has the option to display resizers for text markup annotations using the enableTextMarkupResizer property. This feature allows users to adjust the dimensions of the markup after it has been added to the document.

The default value for this property is false.

Enable text markup resizer

Set the EnableTextMarkupResizer property to true in the Razor view to display resizer handles on text markup annotations:

<div style="width:100%;height:600px">
    <ejs-pdfviewer id="pdfviewer"
                   style="height:600px"
                   documentPath="https://cdn.syncfusion.com/content/pdf/form-filling-document.pdf"
                   resourceUrl="https://cdn.syncfusion.com/ej2/31.1.17/dist/ej2-pdfviewer-lib"
                   enableTextMarkupResizer="true">
    </ejs-pdfviewer>
</div>
<div style="width:100%;height:600px">
    <ejs-pdfviewer id="pdfviewer"
                   style="height:600px"
                   documentPath="https://cdn.syncfusion.com/content/pdf/form-filling-document.pdf"
                   serviceUrl="/api/PdfViewer"
                   enableTextMarkupResizer="true">
    </ejs-pdfviewer>
</div>