modern-pdf-lib / EncryptOptions
Interface: EncryptOptions
Defined in: src/crypto/encryptionHandler.ts:61
Options for encrypting a PDF document.
Properties
algorithm?
optionalalgorithm:EncryptAlgorithm
Defined in: src/crypto/encryptionHandler.ts:69
Encryption algorithm. Default: 'aes-128'.
ownerPassword
ownerPassword:
string
Defined in: src/crypto/encryptionHandler.ts:65
The owner password (restricts editing).
permissions?
optionalpermissions:PdfPermissionFlags
Defined in: src/crypto/encryptionHandler.ts:67
Permission flags.
userPassword
userPassword:
string
Defined in: src/crypto/encryptionHandler.ts:63
The user password (may be empty string for open access).