Redactor constructor

__init__(self, file_path)

Initializes a new instance of Redactor class using file path.


def __init__(self, file_path):
    ...
Parameter Type Description
file_path str Path to the file

Example

The following example demonstrates how to open a document for redaction.

__init__(self, document)

Initializes a new instance of Redactor class using stream.


def __init__(self, document):
    ...
Parameter Type Description
document io.RawIOBase Source stream of the document

Example

The following example demonstrates how to open a document from stream.

__init__(self, file_path, load_options)

Initializes a new instance of Redactor class for a password-protected document using its path.


def __init__(self, file_path, load_options):
    ...
Parameter Type Description
file_path str Path to file.
load_options groupdocs.redaction.options.LoadOptions Options, including password.

__init__(self, document, load_options)

Initializes a new instance of Redactor class for a password-protected document using stream.


def __init__(self, document, load_options):
    ...
Parameter Type Description
document io.RawIOBase Source input stream.
load_options groupdocs.redaction.options.LoadOptions Options, including password.

Example

The following example demonstrates how to open a password-protected documents using LoadOptions.

__init__(self, file_path, load_options, settings)

Initializes a new instance of Redactor class for a password-protected document using its path and settings.


def __init__(self, file_path, load_options, settings):
    ...
Parameter Type Description
file_path str Path to file.
load_options groupdocs.redaction.options.LoadOptions File-dependent options, including password.
settings groupdocs.redaction.options.RedactorSettings Default settings for redaction process.

__init__(self, document, load_options, settings)

Initializes a new instance of Redactor class for a password-protected document using stream and settings.


def __init__(self, document, load_options, settings):
    ...
Parameter Type Description
document io.RawIOBase Source input stream.
load_options groupdocs.redaction.options.LoadOptions Options, including password.
settings groupdocs.redaction.options.RedactorSettings Default settings for redaction process.

Example

The following example demonstrates how to open a password-protected documents using LoadOptions.

See Also