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

Free Support Forum - aspose.com

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.

Code snippet:

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

Thanks in advance.


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.