I have created some minimalist recreation code below and will send the source document through to the support email address.
- Code: Select all
public void HighlightingIssue()
{
PdfDocument doc = new PdfDocument();
string strFileName = @"problematic_11pages.pdf";
string strTarget = @"problematic_11pages-highlighted.pdf";
doc.LoadFromFile(strFileName);
// Highlight the phrases on just the 1st page
foreach (PdfTextFind textCurrent in doc.Pages[0].FindText("Schaumburg, IL 60173|ALEJANDRO", TextFindParameter.Regex).Finds)
{
textCurrent.ApplyHighLight(Color.Gold);
}
doc.SaveToFile(strTarget);
doc.Dispose();
}
As you will see the PdfTextFind call is working and the call to ApplyTextHighLight is made twice using this code along with the PDF provided.
All help is appreciated.
Darren