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

Free Support Forum - aspose.com

Error in Saving PPTX to PDF - Invalid Parameter

Hi, I am getting an error while trying to save a PPTX to PDF.
The code is given below.

   ~~~.SetLicense(DocumentType.PPT, message);
        ~~~.SetLicense(DocumentType.PDF, message);
        Aspose.Slides.Pptx.PresentationEx  pres = new Aspose.Slides.Pptx.PresentationEx(inputDataStream);
        MemoryStream memoryStream = new MemoryStream();
        pres.Save(memoryStream, Aspose.Slides.Export.SaveFormat.Pdf);

Aspose.Slides Version -

Exception Details
Parameter is not valid
at System.Drawing.Bitmap…

Any pointers would be really helpful.

Hi Renjini,

I have observed the information shared by you and it seems that you are using the version of Aspose.Slides that is no longer supported. I suggest you to please first try using Aspose.Slides for .NET 16.1.0 on your end and if there is still an issue then please share the feedback with us so that I may investigate and help you out. Please also share the source presentation and sample project as well for investigation.

Many Thanks,