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

Unlock PPT using C++

Build your own C++ apps to remove passwords from PowerPoint and decrypt presentations files using server-side APIs.

Removing Encryption from PPT Presentation via C++

Using Aspose.Slides for C++, you can remove the encryption or password protection on the PPT presentation. This way, users become able to access or modify the PPT presentation without restrictions.

Disabling Password Protection from PPT using C++


auto loadOptions = System::MakeObject<LoadOptions>();
loadOptions->set_Password(u"123123");
    
auto presentation = System::MakeObject<Presentation>(u"pres.ppt", loadOptions);

presentation->get_ProtectionManager()->RemoveEncryption();
presentation->Save(u"encryption-removed.ppt", SaveFormat::Ppt);

Removing Write Protection from PPT Presentation using C++


auto presentation = System::MakeObject<Presentation>(u"pres.ppt");

presentation->get_ProtectionManager()->RemoveWriteProtection();
presentation->Save(u"write-protection-removed.ppt", SaveFormat::Ppt);

How to Remove Password From PPT via C++

These are the steps to remove protection from PPT files.

  1. Load PPT with an instance of Presentation

  2. Remove Write Protection using ProtectionManager class

  3. Save result in PPT format

Other Supported Formats

Using C++, You can also remove protection from the following formats: