Encrypt()
ProtectionManager::Encrypt(System::String) method
Encrypts Presentation with specified password.
void Aspose::Slides::ProtectionManager::Encrypt(System::String encryptionPassword) override
Arguments
Parameter | Type | Description |
---|---|---|
encryptionPassword | System::String | The password. |
Remarks
The following sample code shows you how to encrypt a PowerPoint Presentation.
auto presentation = System::MakeObject<Presentation>(u"pres.pptx");
presentation->get_ProtectionManager()->Encrypt(u"123123");
presentation->Save(u"encrypted-pres.pptx", SaveFormat::Pptx);
See Also
- Class String
- Class ProtectionManager
- Namespace Aspose::Slides
- Library Aspose.Slides