PPT
PPTX
ODP
POT
ppsx
PPT
Lock or Password Protect PPT using C++
Build your own C++ apps to protect presentation files using server-side APIs.
Protecting a PPT Presentation via C++
Using Aspose.Slides for C++, you can protect your PPT 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 PPT Presentation using C++
auto presentation = System::MakeObject<Presentation>(u"pres.ppt");
presentation->get_ProtectionManager()->Encrypt(u"123123");
presentation->Save(u"encrypted-pres.ppt", SaveFormat::Ppt);
Setting Write Protection to a PPT Presentation using C++
auto presentation = System::MakeObject<Presentation>(u"pres.ppt");
presentation->get_ProtectionManager()->SetWriteProtection(u"123123");
presentation->Save(u"write-protected-pres.ppt", SaveFormat::Ppt);
How to Password Protect PPT via C++
These are the steps to Protect PPT files.
Load PPT with an instance of Presentation
Protect the presentation using ProtectionManager class
Save result in PPT format