PPT PPTX ODP POT ppsx
Aspose.Slides  for Java
PPTX

Unlock PPTX using Java

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

Removing Encryption from PPTX Presentation via Java

Using Aspose.Slides for Java, 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 Java


LoadOptions loadOptions = new LoadOptions();
loadOptions.setPassword("123123");
Presentation presentation = new Presentation("pres.pptx", loadOptions);
try {
    presentation.getProtectionManager().removeEncryption();
    presentation.save("encryption-removed.pptx", SaveFormat.Pptx);
} finally {
    if (presentation != null) presentation.dispose();
}

Removing Write Protection from PPTX Presentation using Java


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

How to Remove Password From PPTX via Java

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 Java, You can also remove protection from the following formats: