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 });
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
Eric