Skip to main content

Interface: DocumentEncryptionOptions

Password and permission options for encrypting a generated document.

Properties

PropertyTypeDescription
algorithm?DocumentEncryptionAlgorithmEncryption algorithm to use when writing encrypted output.
encryptMetadata?booleanWhether to encrypt the metadata stream. Defaults to true. When false, the metadata stream is left unencrypted.
ownerPassword?stringPassword used to grant owner-level permissions.
permissions?DocumentPermissionsPermission flags applied to encrypted output.
userPassword?stringPassword required to open the document.