__init__ constructor

init

Initializes a new instance of LoadOptions class.

def __init__(self):
    ...

init

Initializes a new instance of LoadOptions with the specified password.

def __init__(self, password):
    ...
Parameter Type Description
password str Password for protected files.

Example

    from groupdocs.redaction.options import LoadOptions

    # Load a password‑protected document
    load_opt = LoadOptions("mypassword")
    ```

## __init__ {#pre_rasterize}

Initializes a new LoadOptions instance with the specified prerasterization flag.

```python
def __init__(self, pre_rasterize):
    ...
Parameter Type Description
pre_rasterize bool If True, force rasterization on loading.

init

Initializes a new LoadOptions instance with the specified password.

If pre_rasterize is True, rasterization is forced when the document is loaded.

def __init__(self, password, pre_rasterize):
    ...
Parameter Type Description
password str Password for protected files.
pre_rasterize bool If True, force rasterization on loading.

Example

from groupdocs.redaction.options import LoadOptions

# Load a password-protected document
load_opt = LoadOptions("mypassword")

See Also