Hi!
We are trying to convert between the pptx and ppt formats using Aspose.Slides for .NET 21.9.0.
Given the ppt file attached below, we use the following code to convert it to pptx. However, conversion back to ppt fails with: System.ArgumentException: ‘Parameter is not valid.’ (visible stack trace: at System.Drawing.Bitmap…ctor(Int32 width, Int32 height, PixelFormat format).
var originalPptPath = @"[...]\example.ppt";
var pptxPath = @"[...]\example-conv.pptx";
var outputPptPath = @"[...]\example-output.ppt";
AsposeLicenser.LoadLicense();
var presentation1 = new Presentation(originalPptPath);
presentation1.Save(pptxPath, SaveFormat.Pptx);
var presentation2 = new Presentation(pptxPath);
presentation2.Save(outputPptPath, SaveFormat.Ppt);
example.zip (41.1 KB)
Thanks for any help,
Arnold