Hello,
I have a pdf file with :
#SIGN#001 or #SIGN#002 or ...
I want to find the text with findtext function, but how?
findtext("#SIGN#d{3})
???
Anthony
PdfDocument pdf = new PdfDocument();
pdf.LoadFromFile(@"input.pdf");
PdfTextFind[] result = null;
foreach (PdfPageBase page in pdf.Pages)
{
//Find text
result = page.FindText("#SIGN#\\d{3}", TextFindParameter.Regex).Finds;
foreach (PdfTextFind find in result)
{
//Highlight searched text
find.ApplyHighLight();
}
}