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
| Name | Type | Access | Description |
|---|---|---|---|
user_password | - | Read | Gets the user password. |
owner_password | - | Read | Gets the owner password. |
permissions | - | Read | Gets the permissions. |
algorithm | - | Read | Gets the algorithm. |
limits | - | Read | Gets the limits. |
inputs | list[DataSource] | Read | Gets the inputs. |
outputs | list[DataSource] | Read | Gets the outputs. |
Methods
| Signature | Description |
|---|---|
__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) → PluginOptions | Calls add_input(source) on this EncryptOptions instance. |
add_output(source: DataSource) → PluginOptions | Calls add_output(source) on this EncryptOptions instance. |
add_data_source(source: DataSource) → PluginOptions | Calls add_data_source(source) on this EncryptOptions instance. |