TextSearchColorSettings

6 Jul 20261 minute to read

The TextSearchColorSettings module is used to set the settings for the color of the text search highlight.

<div id="pdfViewer" style="height: 100%;width: 100%;"></div>
 let viewer: PdfViewer = new PdfViewer();
 // Change the text search color settings.
 viewer.textSearchColorSettings = {
     searchHighlightColor: '#4070FF',
     searchColor: '#FF4081'
 };
 viewer.appendTo("#pdfViewer");

Properties

searchColor string

Gets or Sets the color of the other occurrence of the text searched string.

Defaults to ‘#8b4c12’

searchHighlightColor string

Gets or Sets the color of the current occurrence of the text searched string.

Defaults to ‘#fdd835’