PPT
PPTX
ODP
POT
PPSX
PPT
Unlock PPT using C++
Use Aspose.Slides for C++ to remove encryption and write protection from presentation files without Microsoft PowerPoint.
Removing Encryption from PPT Presentation via C++
Aspose.Slides for C++ lets you remove encryption or write protection from PPT 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 PPT using C++
auto loadOptions = MakeObject<LoadOptions>();
loadOptions->set_Password(u"password");
auto presentation = MakeObject<Presentation>(u"encrypted-presentation.ppt", loadOptions);
presentation->get_ProtectionManager()->RemoveEncryption();
presentation->Save(u"unlocked-presentation.ppt", SaveFormat::Ppt);
presentation->Dispose();
Removing Write Protection from PPT Presentation using C++
auto presentation = MakeObject<Presentation>(u"write-protected-presentation.ppt");
presentation->get_ProtectionManager()->RemoveWriteProtection();
presentation->Save(u"unlocked-write-protected-presentation.ppt", SaveFormat::Ppt);
presentation->Dispose();
How to Remove Password From PPT via C++
These are the steps to remove protection from PPT files.
Load the PPT 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::Ppt.