Unlock PPTX Presentations with Python
Build Python applications that remove opening passwords and write-protection settings from PPTX presentations with Aspose.Slides.
Remove Encryption and Write Protection from PPTX with Python
With
Aspose.Slides for Python via .NET
, you can remove encryption that requires a password to open a PPTX presentation, or clear its write-protection setting. To open an encrypted file, provide the current password through LoadOptions.
Remove Encryption from a PPTX Presentation - Python
load_options = slides.LoadOptions()
load_options.password = "123123"
with slides.Presentation("encrypted-presentation.pptx", load_options) as presentation:
presentation.protection_manager.remove_encryption()
presentation.save("unencrypted-presentation.pptx", slides.export.SaveFormat.PPTX)Remove Write Protection from a PPTX Presentation - Python
with slides.Presentation("write-protected-presentation.pptx") as presentation:
presentation.protection_manager.remove_write_protection()
presentation.save("unprotected-presentation.pptx", slides.export.SaveFormat.PPTX)How to Remove Protection from PPTX with Python
Follow these steps to remove protection from a PPTX presentation.
- For an encrypted PPTX file, set the current password in
LoadOptions, and then open the file withPresentation. - Call
ProtectionManager.remove_encryptionto remove the opening password, or callProtectionManager.remove_write_protectionto clear write protection. - Save the resulting presentation with
SaveFormat.PPTX.
Built with Aspose.Slides
Unlock PPTX Files Online
The free Aspose.Slides Unlock app is built with Aspose.Slides for Python via .NET, the same API as the code above. Open it and see what the API can do with your own PPTX files.
- Runs in your browser, nothing to install.
- See how Aspose.Slides removes protection before you write code.
- Remove the password or write protection from your PPTX file.
- Download the unlocked file.
Other Supported Unlocking Formats
Use Python to remove protection from other supported presentation formats.