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