Пример #1
0
 internal void Add(string file, string password)
 {
     var document = new AsposePdf.Document(file);
     dynamic permissions = document.Permissions;
     document.Encrypt(password, OptionApi.GetEncrypted("PDFDefaultOwnerPassword", "?|2^&(*$:@!!*"),(AsposePdf.Permissions) permissions, AsposePdf.CryptoAlgorithm.RC4x40);
     document.Save(file);
 }