PPT PPTX ODP POT ppsx
Aspose.Slides for Python via .NET
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.

  1. Set the password through LoadOptions.password, and load the PPT file into a Presentation instance.

  2. Call ProtectionManager.remove_encryption() to remove encryption. For write-protected files, call ProtectionManager.remove_write_protection() instead.

  3. Call Presentation.save() with SaveFormat.PPT to save the unlocked presentation.

Other Supported Formats

You can also use Python to remove protection from the following formats: