Hello,
I'm trying to execute find text, and it's making an exception... "index out of range "
Look, the word "RETENÇÕES FEDERAIS" exist in PDF (attached), but doesn't work try to find it.
using (PdfDocument pdf = new Spire.Pdf.PdfDocument())
{
pdf.LoadFromFile(p_PDF);
PdfPageBase page = pdf.Pages[0]
}
foreach (PdfTextFind text in page.FindText("RETENÇÕES FEDERAIS", TextFindParameter.WholeWord).Finds)
{
...
}
OBS: I'm using version 5.8.16.2040
I tried updating to 5.9.6.. but this version throws an exception when I call..
FindText(vsubTitulo, TextFindParameter.None).Finds.Count()