We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

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.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.