PPT PPTX ODP POT PPSX
Aspose.Slides  for Java
PPT

Unlock PPT using Java

Build Java applications that remove passwords and write protection from presentation files using server-side APIs.

Removing Protection from PPT Presentation via Java

Using Aspose.Slides for Java , you can remove encryption or write protection from a PPT presentation. Use LoadOptions.setPassword to open an encrypted presentation and the ProtectionManager methods removeEncryption and removeWriteProtection to remove protection settings.

Disable Password Protection from PPT using Java

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

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

Remove Write Protection from PPT Presentation using Java

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

How to Remove Password From PPT via Java

These are the steps to remove protection from PPT files.

  1. Load the PPT file with the Presentation class.

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

  3. Call removeEncryption or removeWriteProtection from the ProtectionManager object.

  4. Save the unlocked presentation in PPT format.

Other Supported Formats

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