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

Unlock PPTX using Python

Build your own Python apps to remove passwords from PowerPoint and decrypt presentations files using server-side APIs.

Removing Encryption from PPTX Presentation via Python

Using Aspose.Slides for Python via .NET, you can remove the encryption or password protection on the PPTX presentation. This way, users become able to access or modify the PPTX presentation without restrictions.

Disabling Password Protection from PPTX using Python


import aspose.slides as slides

loadOptions = slides.LoadOptions()
loadOptions.password = "123123"
with slides.Presentation("encrypted-pres.pptx", loadOptions) as pres:
    pres.protection_manager.remove_encryption()
    pres.save("encryption-removed.pptx", slides.export.SaveFormat.PPTX)

Removing Write Protection from PPTX Presentation using Python


import aspose.slides as slides

with slides.Presentation("write-protected-pres.pptx") as pres:
    pres.protection_manager.remove_write_protection()
    pres.save("write-protection-removed.pptx", slides.export.SaveFormat.PPTX)

How to Remove Password From PPTX via Python

These are the steps to remove protection from PPTX files.

  1. Load PPTX with an instance of Presentation

  2. Remove Write Protection using ProtectionManager class

  3. Save result in PPTX format

Other Supported Formats

Using Python, You can also remove protection from the following formats: