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

Free Support Forum - aspose.com

StackOverflowException after calling Optimize() and Save() on a PDF

We are using Aspose.Pdf 7.2. Running the following code with the attached PDF results in a StackOverflowException on the call to Save().

using (Aspose.Pdf.Document pdf = new Aspose.Pdf.Document(generatedPdfFilePath))
// optimise the PDF for fast web view

Stack trace:

000000002469e400 000007ff00de58d1 .?.(,. , System.Collections.ArrayList ByRef, Boolean)
000000002469e4b0 000007ff00de5a93 .?.(,. , System.Collections.ArrayList ByRef, Boolean)
000000002469e560 000007ff00de58d1 .?.(,. , System.Collections.ArrayList ByRef, Boolean)
000000002469e610 000007ff00de5a93 .?.(,. , System.Collections.ArrayList ByRef, Boolean)
000000002469e6c0 000007ff00de58d1 .?.(,. , System.Collections.ArrayList ByRef, Boolean)
000000002469e770 000007ff00de5a93 .?.(,. , System.Collections.ArrayList ByRef, Boolean)
000000002469e820 000007ff00de5e1c .?.(,. )
000000002469e890 000007ff00de49a0 .?.()
000000002469e950 000007ff00de2148 .?.(.)
000000002469eb80 000007ff00de203d .?.(.)
000000002469ec10 000007ff00dd2661 ..(System.IO.Stream)
000000002469ec70 000007ff00dd0cca Aspose.Pdf.Document.Save(System.String)
000000002469ecd0 000007ff009e219a eDiscovery.Toolbox.Processor.PdfTiffConverter.PdfTiffConverter.ConvertToPdf(System.String, System.String)

Hi Reuben,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for sharing the template files.

I am able to generate your mentioned issue after an initial test. Your issue has been registered in our issue tracking system for rectification with issue id: PDFNEWNET-34144. You will be notified via this forum thread regarding any updates against your reported issue.

Sorry for the inconvenience,

The issues you have found earlier (filed as PDFNEWNET-34144) have been fixed in Aspose.Pdf for .NET 9.4.0.

This message was posted using Notification2Forum from Downloads module by Aspose Notifier.