TextSearchColorSettings
12 Sep 20251 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.
searchHighlightColor string
Gets or Sets the color of the current occurrence of the text searched string.