Aspose.Slides  for Java

Unlock PPT Files in Java

Remove protection from PowerPoint presentations including PPT file using Java Library.

Remove Protection PPT File Using Java

In order to unlock PPT 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


and install it within your Maven-based project by adding the following configurations to the pom.xml.


    <name>Aspose Java API</name>


    <version>version of aspose-slides API</version>

How to unlock PPT via Java

  1. Load locked PPT with an instance of Presentation

  2. Check protection using isWriteProtected boolean type property

  3. Remove protection using the removeWriteProtection() method

  4. Save result in PPT 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 PPT Files via C#

// Open the PPT file
Presentation pres = new Presentation("WriteProtectedFile.ppt");

// Checking if presentation is write protected
if (pres.getProtectionManager().isWriteProtected())
	// Removing Write protection

// Saving presentation"output.ppt", com.aspose.slides.SaveFormat.Ppt);
  • 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 PPT

    Other Supported Unlocking Formats

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

    ODP (OpenDocument Presentation Format)
    PPTX (Open XML presentation Format)