Encrypt
ProtectionManager.Encrypt method
Encrypts Presentation with specified password.
public void Encrypt(string encryptionPassword)
Parameter | Type | Description |
---|---|---|
encryptionPassword | String | The password. |
Examples
The following sample code shows you how to encrypt a PowerPoint Presentation.
[C#]
using (Presentation presentation = new Presentation("pres.pptx"))
{
presentation.ProtectionManager.Encrypt("123123");
presentation.Save("encrypted-pres.pptx", SaveFormat.Pptx);
}
See Also
- class ProtectionManager
- namespace Aspose.Slides
- assembly Aspose.Slides