PPT PPTX ODP POT PPSX
Aspose.Slides  for C++
ODP

Unlock ODP using C++

Use Aspose.Slides for C++ to remove encryption and write protection from presentation files without Microsoft PowerPoint.

Removing Encryption from 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.

Disabling 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 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 Password From ODP via C++

These are the steps to remove protection from ODP files.

  1. Load the ODP file with the Presentation class and LoadOptions when a password is required.

  2. Use the ProtectionManager object to remove protection.

  3. Call RemoveEncryption for encrypted files or RemoveWriteProtection for write-protected files.

  4. Save the unlocked file with SaveFormat::Odp.

Other Supported Formats

You can also remove protection from the following formats with C++.