diff --git a/Document-Processing/PDF/PDF-Viewer/blazor/images/blazor-pdfviewer-text-search-settings.png b/Document-Processing/PDF/PDF-Viewer/blazor/images/blazor-pdfviewer-text-search-settings.png new file mode 100644 index 000000000..e8c8d1a8f Binary files /dev/null and b/Document-Processing/PDF/PDF-Viewer/blazor/images/blazor-pdfviewer-text-search-settings.png differ diff --git a/Document-Processing/PDF/PDF-Viewer/blazor/text-search.md b/Document-Processing/PDF/PDF-Viewer/blazor/text-search.md index 2843f754f..17d361b1a 100644 --- a/Document-Processing/PDF/PDF-Viewer/blazor/text-search.md +++ b/Document-Processing/PDF/PDF-Viewer/blazor/text-search.md @@ -79,4 +79,24 @@ Text search can also be performed programmatically using the following APIs: [Se } -``` \ No newline at end of file +``` + +## Customize text search highlight colors + +Use the [PdfViewerTextSearchColorSettings](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerTextSearchColorSettings.html) to customize the highlight appearance used for search results. Configure [SearchColor](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerTextSearchColorSettings.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerTextSearchColorSettings_SearchColor) for other matches and [SearchHighlightColor](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerTextSearchColorSettings.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerTextSearchColorSettings_SearchHighlightColor) for the current match. By default, distinct colors are applied for current and other occurrences; adjust these to align with application theme requirements. + +```cshtml + +@using Syncfusion.Blazor.SfPdfViewer + + + + + +@code{ + public string DocumentPath { get; set; } = "wwwroot/Data/PDF_Succinctly.pdf"; +} + +``` + +![Blazor SfPdfViewer text search highlight color customization](./images/blazor-pdfviewer-text-search-settings.png) \ No newline at end of file