PPT
PPTX
ODP
POT
ppsx
PPT
Lock or Password Protect PPT using Python
Build your own Python apps to protect presentation files using server-side APIs.
Protecting a PPT Presentation via Python
Using Aspose.Slides for Python via .NET, you can protect your PPT 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 PPT Presentation using Python
import aspose.slides as slides
with slides.Presentation("pres.ppt") as pres:
pres.protection_manager.encrypt("123123")
pres.save("encrypted-pres.ppt", slides.export.SaveFormat.PPT)
Setting Write Protection to a PPT Presentation using Python
import aspose.slides as slides
with slides.Presentation("pres.ppt") as pres:
pres.protection_manager.set_write_protection("123123")
pres.save("write-protected-pres.ppt", slides.export.SaveFormat.PPT)
How to Password Protect PPT via Python
These are the steps to Protect PPT files.
Load PPT with an instance of Presentation
Protect the presentation using ProtectionManager class
Save result in PPT format