PPT PPTX ODP POT ppsx
Aspose.Slides  for Python via .NET
ODP

Lock or Password Protect ODP using Python

Build your own Python apps to protect presentation files using server-side APIs.

Protecting a ODP Presentation via Python

Using Aspose.Slides for Python via .NET, you can protect your ODP presentation from opening or modification by setting a password. Then, to open or modify the locked presentation, a user has to provide the password.

Encrypting a ODP Presentation using Python


import aspose.slides as slides

with slides.Presentation("pres.odp") as pres:
    pres.protection_manager.encrypt("123123")
    pres.save("encrypted-pres.odp", slides.export.SaveFormat.ODP)

Setting Write Protection to a ODP Presentation using Python


import aspose.slides as slides

with slides.Presentation("pres.odp") as pres:
    pres.protection_manager.set_write_protection("123123")
    pres.save("write-protected-pres.odp", slides.export.SaveFormat.ODP)

How to Password Protect ODP via Python

These are the steps to Protect ODP files.

  1. Load ODP with an instance of Presentation

  2. Protect the presentation using ProtectionManager class

  3. Save result in ODP format

Other Supported Protect Formats

Using Python, You can also protect the following formats: