PPTX to PPT Conversion Fails with "Parameter Is Not Valid" Error

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

@arnoldbeilandevozon,
Thank you for the issue description. I reproduced the problem with PPTX to PPT conversion and logged the issue with ID SLIDESNET-42837 in our tracking system. Our development team will investigate this case. You will be notified when the problem is resolved.

The issues you have found earlier (filed as SLIDESNET-42837) have been fixed in Aspose.Slides for .NET 22.1 (ZIP, MSI).
You can check all fixes on the Release Notes page.
You can also find the latest version of our library on the Product Download page.