encrypt method
encrypt
Encrypts the document using the same password as user password and owner password.
def encrypt(self, password):
...
| Parameter | Type | Description |
|---|---|---|
| password | str | User and owner password. |
encrypt
Encrypts the content.
def encrypt(self, user_password, owner_password, permissions, crypto_algorithm):
...
| Parameter | Type | Description |
|---|---|---|
| user_password | str | User password. |
| owner_password | str | Owner password. |
| permissions | PdfPermissions |
Content permissions. |
| crypto_algorithm | PdfCryptoAlgorithm |
Cryptographic algorithm. |
See Also
- module
groupdocs.watermark.contents.pdf - class
PdfContent