Hi, I am using Aspose.Slides.dll version 14.3.0.0 to open the password protected PowerPoint 97-2003 presentation documents. It is throwing "Aspose.Slides.PptxUnsupportedFormatException" with unknown file format error message. This feature is working in the Aspose.Slides.dll for .Net version 7.8.1.0.
Please find the sample code for your reference.
List m_passwordList = new List();
passwords.Add("Test1");
passwords.Add("Test2");
passwords.Add("Test3");
passwords.Add("Test4");
String m_documentFile = "D:\\Aspose Data\\TestPres.pptx";
Presentation presentation = null;
LoadOptions loadOps = new LoadOptions();
foreach (string pass in m_passwordList)
{
try
{
loadOps.Password = pass;
presentation = new Presentation(m_documentFile, loadOps);
break;
} catch {continue; }
}
return presentation;
Thanks,Dhivya