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

Free Support Forum - aspose.com

PPTX with chart throws exception in System.Drawing: Parameter is not valid

Hello,

with the following code and the attached file I get an ArgumentException when converting the PPTX to a PDF:

string sourcePath = @"C:\Temp\Test.pptx";
string destinationPath = @"C:\Temp\Test.pdf";
using (Presentation presentation = new Presentation(sourcePath))
presentation.Save(destinationPath, SaveFormat.Pdf, new PdfOptions { Compliance = PdfCompliance.PdfA1b });

The PPTX contains a chart and only removing the chart completely allows me to convert it. Some PPTX-files with charts can be converted other cannot.

Can you confirm this error and provide a workaround?

Best regards,
Eric

Hi Eric,

I have worked with shared presentation using Aspose.Slides for .NET 17.4 and have not been able to observe the issue. For your kind reference the generated output is also attached. Please try using the specified version on your end to serve the purpose.

Many Thanks,