HTML JPG PDF XML ODP
Aspose.Slides  for Java
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

Aspose.Slides for Java

API which is a feature-rich, powerful and easy to use protection API for Java platform. You can download its latest version directly from

Maven

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

  1. Load locked ODP with an instance of Presentation

  2. Check protection using isWriteProtected boolean type property

  3. Remove protection using the removeWriteProtection() method

  4. 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);
 
  • About Aspose.Slides for Java API

    Aspose.Slides API can be used to read, write, manipulate and convert Microsoft PowerPoint documents to PDF, XPS, HTML, TIFF, ODP and various other formats. One can create new files from scratch and save those in the relevant supported formats. Aspose.Slides is a standalone API for creating, parsing or manipulating presentations, slides and elements and it does not depend on any software like Microsoft or OpenOffice.

    Free App to Unlock ODP

    Other Supported Unlocking Formats

    Using Java, one can easily remove protection / unlocking of different formats including.

    PPT (Microsoft PowerPoint 97-2003)
    PPTX (Open XML presentation Format)