Search results

Text Search in ASP.NET MVC PDF Viewer control

29 Jul 2021 / 1 minute to read

The Text Search option in PDF Viewer is used to find and highlight the text content from the document. You can enable/disable the text search using the following code snippet.

Copied to clipboard
    <div style="width:100%;height:600px">
        @Html.EJS().PdfViewer("pdfviewer").ServiceUrl(VirtualPathUtility.ToAbsolute("~/api/PdfViewer/")).EnableTextSearch(true).DocumentPath("Hive_Succinctly.pdf").Render()
    </div>

Alt text

See also