Hi guys,
please, check attached PDF and following code:
var document = new Aspose.Pdf.Document(@"C:\temp\test.pdf");
document.Flatten();
foreach (var page in document.Pages)
{
var textFragmentAbsorber = new Aspose.Pdf.Text.TextFragmentAbsorber();
page.Accept(textFragmentAbsorber); // -> exception thrown here
}
When flatten() is omitted, “page.Accept(textFragmentAbsorber)” works as expected.
Please, what could be wrong here?
Thank you and best regards!
Ondrej
test.pdf (334.4 KB)