Aspose Convert PowerPoint all formats to PPTX

Hi

Trying to convert all forms of PowerPoint to PPTX format
private static MemoryStream ConvertPowerPoint(Stream ms)
{
if (!CheckPowerPointFormat.Run(ms)) return null;

        try
        {
            ms.Position = 0;
            var docStream = ConvertStreamToMemoryStream(ms);
            docStream.Position = 0;
            var presentation = new Presentation(docStream);
            const SaveFormat saveOptions = SaveFormat.Pptx;
            presentation.Save(docStream, saveOptions);
            docStream.Position = 0;
            return docStream;
        }
        catch (Exception ex)
        {
            Debug.WriteLine(ex.Message);
            return null;
        }
    }

Fails to load from sharepoint giving corrupt error messages
Regards Mikey

@mikesoffice,

I have observed your comments. Can you please share source file along with generated output and environment details so that we may further investigate to help you out. Also please try to use Aspose.Slides latest version 18.1 on your end.

Source file was standard PowerPoint and the output was not generated it errored

Presentation1.zip (104.1 KB)

@mikesoffice,

I have tried loading and saving the presentation file shared by you on my end. I have loaded and saved the presentation using Aspose.Slides for .NET 18.1 on my end and there is no issue in presentation when I have viewed in PowerPoint 2010 on my end. I have not been able to use your code since it involve custom method calls. If there is still an issue then please share a working sample project along with generated presentation on your end with error. I will investigate the issue further on my end to help you out.

PowerPointsaved.zip (97.0 KB)