I am working with open & modify password protected PPTX.
In PowerPoint I can open this presentation using the open password, I am then prompted for the modify password or to open the presentation as read-only.
In Aspose, the open password in the load options works as expected.
As for the modify password, I can tell if the file is write-protected using the ProtectionManager.IsWriteProtected() method, but can find no way to test the modify password on the presentation to open it for editing.
I can remove the write protection via ProtectionManager.RemoveWriteProtection() but it doesn’t ask for a password. I see that I can set the write protection with a password using the ProtectionManager but I see no way of verifying it.
Right now, a modify-protected presentation can be opened and edited without inputting the modify password.
For instance, my modify-protected PPTX has a hidden slide. In Aspose I can open it with the password, and export it to PDF with ShowHiddenSlides=True and see the hidden slide in my PDF output. In Powerpoint the same slide will prompt for a modify password or open the presentation read-only. If I open is as read-only (i.e. I don’t have the password) I cannot print or export this presentation.
Is there a different way of validating the PPTX passwords?