Skip to content

modern-pdf-lib


modern-pdf-lib / EncryptOptions

Interface: EncryptOptions

Defined in: src/crypto/encryptionHandler.ts:61

Options for encrypting a PDF document.

Properties

algorithm?

optional algorithm: 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?

optional permissions: 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).

Released under the MIT License.