HTML
JPG
PDF
XML
ODP
ODP
Unlock ODP Files in Java
Remove protection from PowerPoint presentations including ODP file using Java Library.
Remove Protection ODP File Using Java
In order to unlock ODP file, we’ll use
API which is a feature-rich, powerful and easy to use protection API for Java platform. You can download its latest version directly from
and install it within your Maven-based project by adding the following configurations to the pom.xml.
Repository
<repository>
<id>AsposeJavaAPI</id>
<name>Aspose Java API</name>
<url>https://releases.aspose.com/java/repo/</url>
</repository>
Dependency
<dependency>
<groupId>com.aspose</groupId>
<artifactId>aspose-slides</artifactId>
<version>version of aspose-slides API</version>
<classifier>jdk17</classifier>
</dependency>
How to unlock ODP via Java
Load locked ODP with an instance of Presentation
Check protection using isWriteProtected boolean type property
Remove protection using the removeWriteProtection() method
Save result in ODP format
System Requirements
Aspose.Slides for Java supports on all major platforms and Operating Systems. Please make sure that you have the following prerequisites.
Unlock ODP Files via C#
// Open the ODP file
Presentation pres = new Presentation("WriteProtectedFile.odp");
// Checking if presentation is write protected
if (pres.getProtectionManager().isWriteProtected())
// Removing Write protection
pres.getProtectionManager().removeWriteProtection();
// Saving presentation
pres.save("output.odp", com.aspose.slides.SaveFormat.Odp);