Redactor constructor

init

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

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

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

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

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

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