I have a path to a presentation file in my code. I don’t know if it is a PPSX or PPTX.
I am loading it with Aspose.Slides.Presentation as a PPTX. Is there any way to know if it is PPTX or PPSX after the loading? Any property?
Thank you for posting.
I have observed your comments and like to request you to please visit
http://www.aspose.com/docs/display/slidesnet/Getting+the+format+of+a+file for your kind reference.
I hope this will be helpful. Please share if I may help you further in this regard.
Thank you very much for your quick answer.
I have tried your example with a PPSX encrypted file:
info = PresentationFactory.Instance.GetPresentationInfo(inputFile);
And I am getting that info.LoadFormat = LoadFormat.Pptx even though it is an encrypted PPSX.
Can you help please?
I have attached the file. I have added an extension “zip” since your files attachment loader is not supporting “PPSX”, so feel free to remove this extension.
Presentation pres = new
FileInfo fi = new FileInfo(path);
Console.WriteLine(“It’s a pptm
Console.WriteLine(“It’s a pptx
Console.WriteLine(“It’s a ppsx