PdfSecurity module
- class PdfSecurity.PdfSecurity
Bases:
SpireObjectRepresents the security settings of the PDF document.
- Encrypt
- To Encrypt the PDF document with open password.
Note:If set empty string value to open password, it indicates that the PDF document can be operated without providing corresponding password. Note: the document owner password should not be exist.
- Parameters:
openPassword (str) – The open password.
- property KeySize: PdfEncryptionKeySize
Gets the size of the key.
- property OwnerPassword: str
Gets the owner password.
- property Permissions: PdfPermissionsFlags
Gets the document’s permission flags
- property UserPassword: str
Gets the user password.
