We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

StackOverflow error occurs while retrieving contents from a pdf file

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.

@rbohra

Thank you for contacting support.

You have raised similar concern in another thread, which has been replied. Kindly follow up in respective thread.

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