PPT
PPTX
ODP
POT
ppsx
ODP
Lock or Password Protect ODP using C++
Build your own C++ apps to protect presentation files using server-side APIs.
Protecting a ODP Presentation via C++
Using Aspose.Slides for C++, you can protect your ODP presentation from opening or modification by setting a password. Then, to open or modify the locked presentation, a user has to provide the password.
Encrypting a ODP Presentation using C++
auto presentation = System::MakeObject<Presentation>(u"pres.odp");
presentation->get_ProtectionManager()->Encrypt(u"123123");
presentation->Save(u"encrypted-pres.odp", SaveFormat::Odp);
Setting Write Protection to a ODP Presentation using C++
auto presentation = System::MakeObject<Presentation>(u"pres.odp");
presentation->get_ProtectionManager()->SetWriteProtection(u"123123");
presentation->Save(u"write-protected-pres.odp", SaveFormat::Odp);
How to Password Protect ODP via C++
These are the steps to Protect ODP files.
Load ODP with an instance of Presentation
Protect the presentation using ProtectionManager class
Save result in ODP format