# Unlock PPTX Presentation Files using Python

> Use Python code to remove encryption and write protection from PPTX presentations.

Source: https://products.aspose.com/slides/python-net/unlock/pptx/
Updated: 2026-07-30



## Remove Encryption from a PPTX Presentation with Python

Aspose.Slides for Python via .NET can remove encryption or write protection from a PPTX presentation. After you load an encrypted file with the correct password, call `remove_encryption()` to save an unencrypted copy.

### Remove Password Encryption from PPTX with Python

```py
load_options = slides.LoadOptions()
load_options.password = "123123"

with slides.Presentation("encrypted-presentation.pptx", load_options) as presentation:
    presentation.protection_manager.remove_encryption()
    presentation.save("unencrypted-presentation.pptx", slides.export.SaveFormat.PPTX)
```

### Remove Write Protection from a PPTX Presentation with Python

```py
with slides.Presentation("write-protected-presentation.pptx") as presentation:
    presentation.protection_manager.remove_write_protection()
    presentation.save("unprotected-presentation.pptx", slides.export.SaveFormat.PPTX)
```

## How to Remove a Password from PPTX with Python

These are the steps to remove protection from PPTX files.

Set the password through `LoadOptions.password`, and load the PPTX file into a `Presentation` instance.

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

Call `Presentation.save()` with `SaveFormat.PPTX` to save the unlocked presentation.

## Other Supported Formats
