__init__ constructor

On this page

init

Initializes a new instance of the WordProcessingLoadOptions class.

def __init__(self):
    ...

init

Initializes a new instance of the WordProcessingLoadOptions 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
import groupdocs.watermark.contents.wordprocessing as gwc_wp

load_options = gw.WordProcessingLoadOptions()
with gw.Watermarker("document.docx", load_options) as watermarker:
    content = watermarker.get_content(gwc_wp.WordProcessingContent)
    # manipulate the document as needed

See Also

On this page