Encrypt

Encrypt(string)

Encrypts the document using the same password as user password and owner password.

public void Encrypt(string password)
Parameter Type Description
password String User and owner password.

See Also


Encrypt(string, string, PdfPermissions, PdfCryptoAlgorithm)

Encrypts the content.

public void Encrypt(string userPassword, string ownerPassword, PdfPermissions permissions, 
    PdfCryptoAlgorithm cryptoAlgorithm)
Parameter Type Description
userPassword String User password.
ownerPassword String Owner password.
permissions PdfPermissions Content permissions.
cryptoAlgorithm PdfCryptoAlgorithm Cryptographic algorithm.

See Also