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