Unlock ODP Presentations with Python

Build Python applications that remove opening passwords and write-protection settings from ODP presentations with Aspose.Slides.

Remove Encryption and Write Protection from ODP with Python

With Aspose.Slides for Python via .NET , you can remove encryption that requires a password to open an ODP presentation, or clear its write-protection setting. To open an encrypted file, provide the current password through LoadOptions.

Remove Encryption from an ODP Presentation - Python

load_options = slides.LoadOptions()
load_options.password = "current_password"

with slides.Presentation("encrypted-presentation.odp", load_options) as presentation:
    presentation.protection_manager.remove_encryption()
    presentation.save("decrypted-presentation.odp", slides.export.SaveFormat.ODP)

Remove Write Protection from an ODP Presentation - Python

with slides.Presentation("write-protected-presentation.odp") as presentation:
    presentation.protection_manager.remove_write_protection()
    presentation.save("unprotected-presentation.odp", slides.export.SaveFormat.ODP)

How to Remove Protection from ODP with Python

Follow these steps to remove protection from an ODP presentation.

  1. For an encrypted ODP file, set the current password in LoadOptions, and then open the file with Presentation.
  2. Call ProtectionManager.remove_encryption to remove the opening password, or call ProtectionManager.remove_write_protection to clear write protection.
  3. Save the resulting presentation with SaveFormat.ODP.

Built with Aspose.Slides

Unlock ODP 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 ODP 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 ODP file.
  • Download the unlocked file.

Other Supported Unlocking Formats

Use Python to remove protection from other supported presentation formats.