# Unlock PPTX Presentation Files using Java

> Remove passwords and write protection from PPTX presentations in Java using Aspose.Slides for Java.

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



## Removing Protection from PPTX Presentation via Java

Using [Aspose.Slides for Java](/slides/java/), you can remove encryption or write protection from a PPTX presentation. Use `LoadOptions.setPassword` to open an encrypted presentation and the `ProtectionManager` methods `removeEncryption` and `removeWriteProtection` to remove protection settings.

### Disable Password Protection from PPTX using Java

```java
LoadOptions loadOptions = new LoadOptions();
loadOptions.setPassword("123123");

Presentation presentation = new Presentation("presentation.pptx", loadOptions);
try {
    presentation.getProtectionManager().removeEncryption();
    presentation.save("encryption-removed.pptx", SaveFormat.Pptx);
} finally {
    presentation.dispose();
}
```

### Remove Write Protection from PPTX Presentation using Java

```java
Presentation presentation = new Presentation("presentation.pptx");
try {
    presentation.getProtectionManager().removeWriteProtection();
    presentation.save("write-protection-removed.pptx", SaveFormat.Pptx);
} finally {
    presentation.dispose();
}
```

## How to Remove Password From PPTX via Java

These are the steps to remove protection from PPTX files.

Load the `PPTX` file with the `Presentation` class.

Use `LoadOptions.setPassword` when the presentation is encrypted.

Call `removeEncryption` or `removeWriteProtection` from the `ProtectionManager` object.

Save the unlocked presentation in PPTX format.

## Other Supported Formats
