Hi All,
We are trying get all occurances based in Regex match. We are using Aspose.PDF 23.11.1 latest version. Below is the code to get TextFragments.
var doc = new Aspose.Pdf.Document(path);
var searchTerm = “\[(?s)(.*?)\]”;
TextFragmentAbsorber textFragmentAbsorber = new TextFragmentAbsorber(searchTerm);
TextSearchOptions textSearchOptions = new TextSearchOptions(true);
textFragmentAbsorber.TextSearchOptions = textSearchOptions;
doc.Pages.Accept(textFragmentAbsorber);
TextFragmentCollection textFragmentCollection = textFragmentAbsorber.TextFragments;
It is taking more than 15-20 minutes to get fragments even for small file.
Can you please suggest any approach to improve the performance.
Thanks,
Susmitha