We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

PresentationCore Out of Memory exception loading a ppt


I was following the tutorial here. 


After fixing some issues with the webformats mvc5 nugget. 

I finished with some code like this

public void ConvertPPTToPDFWordPreview(string pptDocument, string pptDocumentName)
            IPresentation presentation = Presentation.Open(MvcApplication.GetDocumentsDirectory() + "\\" + HttpUtility.UrlDecode(pptDocument));
            presentation.ChartToImageConverter = new ChartToImageConverter();
            presentation.ChartToImageConverter.ScalingMode = Syncfusion.OfficeChart.ScalingMode.Best;

            PresentationToPdfConverterSettings settings = new PresentationToPdfConverterSettings();
            settings.ShowHiddenSlides = true;

            //Instance to create pdf document from presentation                
            PdfDocument doc = PresentationToPdfConverter.Convert(presentation, settings);

            //Saves the pdf document
            doc.Save(MvcApplication.GetCacheDirectory() + "\\" + HttpUtility.UrlDecode(pptDocumentName + ".pdf"));

I have the issue when I try to convert a really small ppt to pdf.

The exception detail is this:

System.OutOfMemoryException was unhandled
Message: An unhandled exception of type 'System.OutOfMemoryException' occurred in PresentationCore.dll
Additional information: Insufficient memory to continue the execution of the program.

I have to make a dispose in any point? Are the ppt not supported and only the pptx supported?

If anyone knows why this could be happening, please let me know.

Kind regards, 


Attachment: crashpresentation_d4fdb9b3.zip

1 Reply

DJ Devisri Jothi Syncfusion Team July 26, 2016 10:16 AM UTC

Hi Juan, 
Thank you for using Syncfusion product. 
We have checked the provided screenshot that shows No Symbols Loaded warning for “PresentationCore.dll” which is a .NET Framework built-in assembly and not related to Syncfusion product. Please refer the below MSDN link to resolve this issue. 
Is the ppt not supported and only the pptx supported? 
Yes, at the moment Support for PPT file format is not available in Presentation library. We have already logged this as a feature request in our database. We will implement this feature in any of our upcoming releases. We usually have an interval of at least three months between releases. The feature implementation would also greatly depend on the factors such as product design, code compatibility and complexity. We will update you when this feature has been implemented. This can be tracked through our feature management system: 
Work Around for PPT file format 
You can use B2X translator to convert Microsoft Office binary file format(.PPT) to Office Open XML standard format(.PPTX). This translator is an open source project that can be used as a work around for Office binary formats interoperability. 
The sample demonstrates how a PPTX file can be converted to PDF document using Presentation library. The PDF gets generated in the Output folder of the sample. 
Please refer the following online UG documentation to know more about supported features: 
Please let me know if you have any question. 


Live Chat Icon For mobile
Up arrow icon