Aspose.Slides  for Java

Unlock PPTX Files in Java

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

Remove Protection PPTX File Using Java

In order to unlock PPTX 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 PPTX via Java

  1. Load locked PPTX with an instance of Presentation

  2. Check protection using isWriteProtected boolean type property

  3. Remove protection using the removeWriteProtection() method

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

// Open the PPTX file
Presentation pres = new Presentation("WriteProtectedFile.pptx");

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

// Saving presentation"output.pptx", com.aspose.slides.SaveFormat.Pptx);
  • 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 PPTX

    Other Supported Unlocking Formats

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

    ODP (OpenDocument Presentation Format)
    PPT (Microsoft PowerPoint 97-2003)