PPT PPTX ODP POT ppsx
Aspose.Slides  for Java
PPT

Unlock PPT using Java

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

Removing Encryption from PPT Presentation via Java

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

Disabling Password Protection from PPT using Java


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

Removing Write Protection from PPT Presentation using Java


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

How to Remove Password From PPT via Java

These are the steps to remove protection from PPT files.

  1. Load PPT with an instance of Presentation

  2. Remove Write Protection using ProtectionManager class

  3. Save result in PPT format

Other Supported Formats

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