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