Hi Team
TextSearchOptions textSearchOptions = new TextSearchOptions(true);
textFragmentAbsorber.TextSearchOptions = textSearchOptions;
pdfDocument.Pages.Accept(textFragmentAbsorber);
Hi Team
Hi Balamurugan,
Hi Nayyer Shahbaz
Hi Balamurugan,
Thanks for sharing the resource file.
I have tested the scenario using Aspose.Pdf for .NET 10.2.0 and I am unable to notice any issues. Can you please try using the latest release?
[C#]
Document pdfDocument = new Document(@"C:\pdftest\Sample.pdf");
TextFragmentAbsorber textFragmentAbsorber = new TextFragmentAbsorber("[^\r\n]+");
TextSearchOptions textSearchOptions = new TextSearchOptions(true);
textFragmentAbsorber.TextSearchOptions = textSearchOptions;
pdfDocument.Pages.Accept(textFragmentAbsorber);
// get the extracted text fragments
TextFragmentCollection textFragmentCollection =
textFragmentAbsorber.TextFragments;
// loop through the fragments
foreach (TextFragment textFragment in textFragmentCollection)
{
Console.WriteLine("Text : {0} ", textFragment.Text);
}
Hi Nayyer Shahbaz
Hi Balamurugan,