Hi Mudassir,
Sorry if my explanation was not understandable enough. Yes,
this is concerning Aspose.Slides.
Scenario. If you try to open password-protected
PPT/POT (with or without password specified) with Aspose.Slides.Pptx.PresentationEx,
then PptUnsupportedFormatException is thrown. And it is correct behavior.
But, If you try to open regular PPT/POT with
Aspose.Slides.Pptx.PresentationEx – file opened (no exception
thrown). And it is inconsistency if to take into account what mention above.
Many thanks,
Alex Shloma
Hi Alex Shloma,
Thanks for the elaboration. I have understand the query shared and like to share that Aspose.Slides does the right thing by throwing PptxUnsupportedFormat exception with message detail that “Encrypted PPT is not supported” when password protected PPT/POT is accessed using PresentationEx class. I think you agree with this point and in my opinion this is the correct exception.
Now coming to plain or regular PPT/POT files. You shared that Aspose.Slides.Pptx.PresentationEx opened the PPT/POT files and did not throw any exception. I like to share that this is perfectly normal behavior as PresentationEx class also support loading PPT/POT/PPS files. The PresentationEx has limited support for PowerPoint 97-2003 presentations loading support. You can even save the PPT to PPTX to some extent but vice verse is not supported at the moment. We are working in this area as well and will be releasing a unified API for Aspose.Slides that will be having a single namespace for both PPT and PPTX forms of presentations. The said API is expected to be released during Q1 of 2014. For more about PPT to PPTX conversion, please visit this documentation link.
Please share, if I may help you further in this regard.
Many Thanks,