We’re currently seeing an exception get thrown when attempting to convert some PPTX files to PDF via Aspose.Slides. This particular exception happens when the ‘FIPS mode’ Group Policy is enabled in Windows:
“InvalidOperationException: This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms.”
The code used to trigger this (In C#):
FileStream stream = new FileStream(@"File Path", FileMode.Open); Presentation presentation = new Presentation(stream); presentation.Save(@"output_file", SaveFormat.Pdf); // Exception is thrown on this line
The attachment includes two PPTX files, one which will trigger the error and one which won’t. The names should make it clear which is which.
pptx_files.zip (1.3 MB)
From the stack trace, I can tell that you’re trying to create a MD5 provider, and MD5 cannot be used in FIPS mode. What wasn’t clear to me was what it is about the second PPTX file is different from the first, and hence causes you to create the MD5 provider. It would be very useful to know if there is some type of security setting on the second PPTX file which causes you to attempt to use some security settings for the PDF that require the use of MD5. I’ve looked all the settings I can view off of the
Presentation object and I can’t find anything of consequence that is different. In addition, it is something about converting to PDF specifically that triggers the error - converting the PPTX to TIFF does not trigger the error.
Let me know if you need any more information. I have tested this in the newest version of Aspose.Slides, v18.3, and it throws the exception.