Hi Support,
I am using TextFragmentAbsorber class for finding the text in PDF document. I have a following scenarios in which I am unable to find the text:
1: Text contains round brackets ().
2: Text contains line break for example:
Sign
(line break)
Here
My code snippet is following:
Aspose.Pdf.Document pdfDocument = new Aspose.Pdf.Document(new MemoryStream(_documentBytes, true));
TextFragmentAbsorber textFragment = new TextFragmentAbsorber(@"(?i)\b" + phrase + @"\b");
TextSearchOptions textSearchOptions = new TextSearchOptions(true);
textFragment.TextSearchOptions = textSearchOptions;
pdfDocument.Pages.Accept(textFragment);
TextFragmentCollection textFragmentCollection = textFragment.TextFragments;
Does Aspose support the above scenarios.
Regards