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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

ZipException when trying to convert PPT to PDF

Thread ID:

Created:

Updated:

Platform:

Replies:

119424 Jun 18,2015 02:55 PM UTC Apr 6,2016 09:11 AM UTC ASP.NET MVC 3
loading
Tags: Presentation
Abdul Muhaimin
Asked On June 18, 2015 02:55 PM UTC

Hi

IPresentation presentation = Presentation.Open(@"D:\YUs\Test\pp2.ppt");
            presentation.ChartToImageConverter = new ChartToImageConverter();
            presentation.ChartToImageConverter.ScalingMode = Syncfusion.OfficeChart.ScalingMode.Best;

            PresentationToPdfConverterSettings settings = new PresentationToPdfConverterSettings();

            settings.ShowHiddenSlides = true;
            PdfDocument doc = PresentationToPdfConverter.Convert(presentation, settings);
            doc.Save(@"D:\YUs\Test\pp2.pdf");
            doc.Close();

Using the code above (which I copy pasted from the sample), I can convert PPTX to PDF.. but when I tried to convert PPT to PDF, it returns the error

Syncfusion.Compression.Zip.ZipException: Zip exception.Can't locate end of central directory record. Possible wrong file format or archive is corrupt. at Syncfusion.Compression.Zip.ZipArchive.Open(Stream stream, Boolean closeStream) at Syncfusion.Presentation.FileDataHolder.Open(Stream stream) at Syncfusion.Presentation.Presentation.SetArchieveItems(Stream stream) at Syncfusion.Presentation.Presentation.ParseDocument(Stream fileStream) at Syncfusion.Presentation.Presentation.OpenAsStream(Stream stream) at Syncfusion.Presentation.Presentation.Open(String fileName) at 

Arun Prasad Matheshwaran [Syncfusion]
Replied On June 19, 2015 09:48 AM UTC

Hi Abdul,
Thank you for your interest in Syncfusion product.
We have checked the details and Syncfusion Essential Presentation library only supports manipulating "PPTX" documents and this error message will be shown while you are using “ppt” documents (the file extension for PowerPoint 2003 and earlier versions) in our presentation library.
We would like to inform you that we have logged “Need support for using PPT documents in Essential Presentation library” 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. Please log on to our support website to check for further updates:
https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents

Regards,
Arun

Anil Kakar
Replied On April 4, 2016 06:34 PM UTC

Did this ever make it into the product?

I'm still receiving the same issue.

Devisri Jothi [Syncfusion]
Replied On April 6, 2016 09:11 AM UTC

Hi Anil,
We have logged a feature report for PPT to PDF conversion support in Presentation library. A support incident to track the status of this feature has been created under your account. Please log on to our support website to check for further updates
https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents
Please let me know if you have any questions.
Regards,
Devisri

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;