Unlock ODP using C++
Use Aspose.Slides for C++ to remove encryption and write protection from presentation files without Microsoft PowerPoint.
Removing Protection from an ODP Presentation via C++
Aspose.Slides for C++ lets you remove encryption or write protection from ODP presentations. Use LoadOptions to open an encrypted file, then use the ProtectionManager object from the Presentation class to call RemoveEncryption or RemoveWriteProtection.
Removing Password Protection from ODP using C++
auto loadOptions = MakeObject<LoadOptions>();
loadOptions->set_Password(u"password");
auto presentation = MakeObject<Presentation>(u"encrypted-presentation.odp", loadOptions);
presentation->get_ProtectionManager()->RemoveEncryption();
presentation->Save(u"unlocked-presentation.odp", SaveFormat::Odp);
presentation->Dispose();Removing Write Protection from an ODP Presentation using C++
auto presentation = MakeObject<Presentation>(u"write-protected-presentation.odp");
presentation->get_ProtectionManager()->RemoveWriteProtection();
presentation->Save(u"unlocked-write-protected-presentation.odp", SaveFormat::Odp);
presentation->Dispose();How to Remove a Password from ODP via C++
Follow these steps to remove protection from an ODP presentation.
- Load the ODP file with the
Presentationclass andLoadOptionswhen a password is required. - Use the
ProtectionManagerobject to remove protection. - Call
RemoveEncryptionfor encrypted files orRemoveWriteProtectionfor write-protected files. - Save the unlocked file with
SaveFormat::Odp.
Built with Aspose.Slides
Unlock ODP Files Online
The free Aspose.Slides Unlock app is built with Aspose.Slides for C++, the same API as the code above. Open it and see what the API can do with your own ODP files.
- Runs in your browser, nothing to install.
- See how Aspose.Slides removes protection before you write code.
- Remove the password or write protection from your ODP file.
- Download the unlocked file.
Other Supported Unlocking Formats
Using C++, you can also remove protection from the following formats.