Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

OutOfMemory Exception saving a PDF to XPS

$
0
0
While saving a roughly 32MB PDF as an XPS, we are receiving an OutOfMemoryException during the Save call. When looking at task manager, I'm seeing memory usage ~700MB ( over 8GB free on the machine I'm testing with ). Stack trace coming from Aspose is below.

The PDF does contain numerous vector drawings, I suspect that the # of elements within the PDF are a contributing factor. I am currently just opening the document & then saving as PDF, I am not setting or manipulating the document in any way.

We are unable to integrate Aspose in our product until we get this addressed. What can be done to resolve this issue? Please contact me if you would like me to send you the PDF file for analysis purposes.


Stack trace:
at . ..ctor( , Single )
at . ..ctor( )
at . ..ctor( , , , Single , PointF , String , SizeF , Single )
at . ..ctor( , , , PointF , String , SizeF , Single )
at . ..ctor( , String , [] , Byte[] , Int32 , Double , Hashtable , Double , , Double , , Boolean , Boolean , )
at . .CreateText( , , String , [] , Byte[] , Int32 , Double , Hashtable , , Double , Double , Boolean , Boolean )
at . .CreateText( , , String , [] , Byte[] , Int32 , Double , Hashtable , , Double , Double , Boolean )
at . . ( , , Int32 )
at . . ( )
at . . ( )
at . . ( )
at . . ( , ArrayList )
at . .Process( , , )
at . . (Document , & , UnifiedSaveOptions , Int32& )
at . . (Document , & , UnifiedSaveOptions , Int32& )
at . . (Document , Stream , XpsSaveOptions )
at Aspose.Pdf.Document.Save(Stream outputStream, SaveOptions options)
at WpfApplication1.PdfToXpsRenderer.Render()

Viewing all articles
Browse latest Browse all 3131

Trending Articles