EncryptOptions

EncryptOptions

Overview

EncryptOptions is a class in Aspose.PDF FOSS for Python. Inherits from: PluginOptions.

Options for :class:Encryptor, as :meth:~aspose_pdf.Document.encrypt.

This class declares 5 methods for EncryptOptions objects in Python programs. Available methods include: __init__, add_data_source, add_input, add_output. Public members are accessible to any Python application after installing the Aspose.PDF FOSS for Python package. Properties: algorithm, inputs, limits, outputs, owner_password, permissions, and 1 more.

Properties

NameTypeAccessDescription
user_password-ReadGets the user password.
owner_password-ReadGets the owner password.
permissions-ReadGets the permissions.
algorithm-ReadGets the algorithm.
limits-ReadGets the limits.
inputslist[DataSource]ReadGets the inputs.
outputslist[DataSource]ReadGets the outputs.

Methods

SignatureDescription
__init__(user_password: str, owner_password: str | None, permissions: int | Permissions, algorithm: str, limits: PdfLoadLimits | None)Calls init(user_password, owner_password, permissions, algorithm, limits) on this EncryptOptions instance.
__init__(limits: PdfLoadLimits | None)Calls init(limits) on this EncryptOptions instance.
add_input(source: DataSource) → PluginOptionsCalls add_input(source) on this EncryptOptions instance.
add_output(source: DataSource) → PluginOptionsCalls add_output(source) on this EncryptOptions instance.
add_data_source(source: DataSource) → PluginOptionsCalls add_data_source(source) on this EncryptOptions instance.

See Also