Encrypt

Encrypt(string, string, DocumentPrivilege, CryptoAlgorithm, bool)

Encrypts the document. Call then Save to get encrypted version of the document.

public void Encrypt(string userPassword, string ownerPassword, DocumentPrivilege privileges, 
    CryptoAlgorithm cryptoAlgorithm, bool usePdf20)
Parameter Type Description
userPassword String User password.
ownerPassword String Owner password.
privileges DocumentPrivilege Document permissions, see Permissions for details.
cryptoAlgorithm CryptoAlgorithm Cryptographic algorithm, see CryptoAlgorithm for details.
usePdf20 Boolean Support for revision 6 (Extension 8).

See Also


Encrypt(string, string, Permissions, CryptoAlgorithm)

Encrypts the document. Call then Save to get encrypted version of the document.

public void Encrypt(string userPassword, string ownerPassword, Permissions permissions, 
    CryptoAlgorithm cryptoAlgorithm)
Parameter Type Description
userPassword String User password.
ownerPassword String Owner password.
permissions Permissions Document permissions, see Permissions for details.
cryptoAlgorithm CryptoAlgorithm Cryptographic algorithm, see CryptoAlgorithm for details.

See Also


Encrypt(string, string, Permissions, CryptoAlgorithm, bool)

Encrypts the document. Call then Save to get encrypted version of the document.

public void Encrypt(string userPassword, string ownerPassword, Permissions permissions, 
    CryptoAlgorithm cryptoAlgorithm, bool usePdf20)
Parameter Type Description
userPassword String User password.
ownerPassword String Owner password.
permissions Permissions Document permissions, see Permissions for details.
cryptoAlgorithm CryptoAlgorithm Cryptographic algorithm, see CryptoAlgorithm for details.
usePdf20 Boolean Support for revision 6 (Extension 8).

See Also