Hi There, I am a corporate developer in the US and I am having a problem when trying find and highlight text on a pdf file. It takes a pdf file and does the search ok but when it writes the new file the text is missing and the document is messed up. I have tried this in both the full version and the free version with the same results. I think this software has promise but if it doesn't work I can't use it. Looking forward to your reply. Thanks -Frank Silano
Here is my code (C#) that I have taken from the example code on your site.
PdfDocument pdf = new PdfDocument(tempDocFile);
PdfTextFind[] result = null;
foreach (PdfPageBase page in pdf.Pages)
{
//result = page.FindText("Youth").Finds;
result = page.FindText(searchString, TextFindParameter.IgnoreCase).Finds;
foreach (PdfTextFind find in result)
{
find.ApplyHighLight();
}
}
pdf.SaveToFile(theDst);