Appearance
zeropdf / DocumentEncryptionOptions
Interface: DocumentEncryptionOptions
Defined in: src/types.ts:374
Password and permission options for encrypting a generated document.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
algorithm? | DocumentEncryptionAlgorithm | Encryption algorithm to use when writing encrypted output. | src/types.ts:382 |
encryptMetadata? | boolean | Whether to encrypt the metadata stream. Defaults to true. When false, the metadata stream is left unencrypted. | src/types.ts:384 |
ownerPassword? | string | Password used to grant owner-level permissions. | src/types.ts:378 |
permissions? | DocumentPermissions | Permission flags applied to encrypted output. | src/types.ts:380 |
userPassword? | string | Password required to open the document. | src/types.ts:376 |