PPT
PPTX
ODP
POT
PPSX
ODP
Unlock ODP using Java
Build Java applications that remove passwords and write protection from presentation files using server-side APIs.
Removing Protection from ODP Presentation via Java
Using
Aspose.Slides for Java
, you can remove encryption or write protection from an ODP presentation. Use LoadOptions.setPassword to open an encrypted presentation and the ProtectionManager methods removeEncryption and removeWriteProtection to remove protection settings.
Disable Password Protection from ODP using Java
LoadOptions loadOptions = new LoadOptions();
loadOptions.setPassword("123123");
Presentation presentation = new Presentation("presentation.odp", loadOptions);
try {
presentation.getProtectionManager().removeEncryption();
presentation.save("encryption-removed.odp", SaveFormat.Odp);
} finally {
presentation.dispose();
}
Remove Write Protection from ODP Presentation using Java
Presentation presentation = new Presentation("presentation.odp");
try {
presentation.getProtectionManager().removeWriteProtection();
presentation.save("write-protection-removed.odp", SaveFormat.Odp);
} finally {
presentation.dispose();
}
How to Remove Password From ODP via Java
These are the steps to remove protection from ODP files.
Load the
ODPfile with thePresentationclass.Use
LoadOptions.setPasswordwhen the presentation is encrypted.Call
removeEncryptionorremoveWriteProtectionfrom theProtectionManagerobject.Save the unlocked presentation in ODP format.