WriterEncryption

WriterEncryption

Overview

WriterEncryption is a class in Aspose.PDF FOSS for Python.

The security handler, applied as :class:PdfCosWriter serialises.

This class declares 1 method for WriterEncryption objects in Python programs. Available methods include: apply. Public members are accessible to any Python application after installing the Aspose.PDF FOSS for Python package. Properties: algorithm, encrypt_metadata, exempt, key.

Properties

NameTypeAccessDescription
keybytesReadGets the key.
algorithmstrReadGets the algorithm.
exemptfrozenset[int]ReadGets the exempt.
encrypt_metadataboolReadGets the encrypt metadata.

Methods

SignatureDescription
apply(obj_num: int, gen_num: int, data: bytes) → bytesReturn data enciphered with the key for this object.

See Also