HTML
JPG
PDF
XML
PPTX
PPTX
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
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 PPTX via Java
Load locked PPTX with an instance of Presentation
Check protection using isWriteProtected boolean type property
Remove protection using the removeWriteProtection() method
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
pres.getProtectionManager().removeWriteProtection();
// Saving presentation
pres.save("output.pptx", com.aspose.slides.SaveFormat.Pptx);