Extract text from PDF file using Aspose.PDF for .NET - StackOverflow exception occurs

Hi there,

Hope you are doing good.

I am using Aspose.pdf 17.9 version API’s in my application.

I am getting StackOverflow exception and my desktop application gets crashed while retrieving contents from below pdf file.
https://drive.google.com/file/d/1-UkMJSf9_sNE5a61GDtHds5fES1ErF1a/view?usp=sharing

Code snippet:

using (Aspose.Pdf.Document pdfDocument = new Aspose.Pdf.Document(fileURL))
{
TextAbsorber textAbsorber = new TextAbsorber();
pdfDocument.Pages.Accept(textAbsorber);
string docText = textAbsorber.Text;
}

Thanks in advance.

@brenclarke

Thank you for contacting support.

I have worked with the data shared by you and have been able to reproduce the issue in our environment. A ticket with ID PDFNET-44265 has been logged in our issue management system for further investigation and resolution. The issue ID has been linked with this thread so that you will receive notification as soon as the issue is resolved.

We are sorry for the inconvenience.

The issues you have found earlier (filed as PDFNET-44265) have been fixed in Aspose.PDF for .NET 20.6.