PPT
PPTX
ODP
POT
ppsx
PPT
Unlock PPT using Python
Build Python applications that remove passwords and write protection from PowerPoint presentation files using server-side APIs.
Remove Encryption from a PPT Presentation with Python
Aspose.Slides for Python via .NET can remove encryption or write protection from a PPT presentation. After you load an encrypted file with the correct password, call remove_encryption() to save an unencrypted copy.
Remove Password Encryption from PPT with Python
load_options = slides.LoadOptions()
load_options.password = "123123"
with slides.Presentation("encrypted-presentation.ppt", load_options) as presentation:
presentation.protection_manager.remove_encryption()
presentation.save("unencrypted-presentation.ppt", slides.export.SaveFormat.PPT)
Remove Write Protection from a PPT Presentation with Python
with slides.Presentation("write-protected-presentation.ppt") as presentation:
presentation.protection_manager.remove_write_protection()
presentation.save("unprotected-presentation.ppt", slides.export.SaveFormat.PPT)
How to Remove a Password from PPT with Python
These are the steps to remove protection from PPT files.
Set the password through
LoadOptions.password, and load the PPT file into aPresentationinstance.Call
ProtectionManager.remove_encryption()to remove encryption. For write-protected files, callProtectionManager.remove_write_protection()instead.Call
Presentation.save()withSaveFormat.PPTto save the unlocked presentation.