Welcome to the ASP.NET Core feedback portal. We’re happy you’re here! If you have feedback on how to improve the ASP.NET Core, we’d love to hear it!>
Thanks for joining our community and helping improve Syncfusion products!
FindText is not working properly.
if (pdfLoaded.FindText(wordForSearch, out matchRects))
{
foreach (var matchRect in matchRects)
{
var page = pdfLoaded.Pages[matchRect.Key];
foreach (var rect in matchRect.Value)
{
var textAnnot = new PdfTextMarkupAnnotation(rect)
{
Author = "AutoAnnotation",
Opacity = 1.0f,
Subject = "pdftextmarkupannotation",
ModifiedDate = DateTime.Now,
TextMarkupAnnotationType = PdfTextMarkupAnnotationType.Highlight,
TextMarkupColor = new PdfColor(173,192,211),
Color = new PdfColor(173,192,211)
};
page.Annotations.Add(textAnnot);
}
}
}