Hello Support,
We are encountering an issue when iterating through a pdf and loading content page by page. In the end we are merging multiple documents together, but this is the simplest way to reproduce the issue. Code shown below.
The specific pdf that causes the issue is attached – it has a recursive link in it which generates a stack overflow exception, which in turns leads to an application crash since we cannot catch it (StackOverflowException Class (System) | Microsoft Learn )
Document document = new Document(fileName);
foreach (Page page in document.Pages)
{
Aspose.Pdf.Text.TextBuilder builder = new Aspose.Pdf.Text.TextBuilder(page);
}
We are on an old version of Aspose (March 2016) but have reproduced the same issue with a newer trial version.
Our application allows users to upload their own documents, which can later be included in communication where we need to merge or manipulate the uploaded document – creating the issue we have found.
Can we expect this to addressed in a future update?
Thanks
Shawn
OpenRFI00001_Fail.pdf (47.5 KB)