__init__ constructor

On this page

init

Initializes a new instance of the PresentationLoadOptions class.

def __init__(self):
    ...

Example

from groupdocs.watermark import Watermarker
from groupdocs.watermark.options.presentation import PresentationLoadOptions

def remove_slide_background():
    with Watermarker("./presentation.pptx", PresentationLoadOptions()) as watermarker:
        content = watermarker.get_content()
        content.slides[0].image_fill_format.background_image = None
        watermarker.save("./output.pptx")

init

Initializes a new instance of the PresentationLoadOptions class with a specified password.

def __init__(self, password):
    ...
Parameter Type Description
password str The password for opening an encrypted content.

Example

    import groupdocs.watermark as gw
    from groupdocs.watermark.options.presentation import PresentationLoadOptions

    load_options = PresentationLoadOptions()
    ```

### See Also
* class [`PresentationLoadOptions`](/watermark/python-net/groupdocs.watermark.options.presentation/presentationloadoptions/)

On this page