Search results

Text Search in ASP.NET Core PDF Viewer control

20 Oct 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">
        <ejs-pdfviewer id="pdfviewer"
                style="height:600px"
                serviceUrl="/api/PdfViewer"
                documentPath=@ViewBag.DocumentPath
                enableTextSearch="true">
        </ejs-pdfviewer>
    </div>

Alt text

See also