# Unlock PPTX Presentations using C++

> Unlock PPTX presentations in C++. Use Aspose.Slides for C++ to remove encryption and write protection from presentation files.

Source: https://products.aspose.com/slides/cpp/unlock/pptx/
Updated: 2026-07-09



## Removing Encryption from PPTX Presentation via C++

Aspose.Slides for C++ lets you remove encryption or write protection from PPTX presentations. Use `LoadOptions` to open an encrypted file, then use the `ProtectionManager` object from the `Presentation` class to call `RemoveEncryption` or `RemoveWriteProtection`.

### Disabling Password Protection from PPTX using C++

```cpp
auto loadOptions = MakeObject<LoadOptions>();
loadOptions->set_Password(u"password");

auto presentation = MakeObject<Presentation>(u"encrypted-presentation.pptx", loadOptions);

presentation->get_ProtectionManager()->RemoveEncryption();
presentation->Save(u"unlocked-presentation.pptx", SaveFormat::Pptx);
presentation->Dispose();
```

### Removing Write Protection from PPTX Presentation using C++

```cpp
auto presentation = MakeObject<Presentation>(u"write-protected-presentation.pptx");

presentation->get_ProtectionManager()->RemoveWriteProtection();
presentation->Save(u"unlocked-write-protected-presentation.pptx", SaveFormat::Pptx);
presentation->Dispose();
```

## How to Remove Password From PPTX via C++

These are the steps to remove protection from PPTX files.

Load the PPTX file with the `Presentation` class and `LoadOptions` when a password is required.

Use the `ProtectionManager` object to remove protection.

Call `RemoveEncryption` for encrypted files or `RemoveWriteProtection` for write-protected files.

Save the unlocked file with `SaveFormat::Pptx`.

## Other Supported Formats
