WordProcessingLoadOptions class

WordProcessingLoadOptions class

Represents document loading options for a Word document.

The WordProcessingLoadOptions type exposes the following members:

Constructors

Constructor Description
init Initializes a new instance of the WordProcessingLoadOptions class.
init Initializes a new instance of the WordProcessingLoadOptions class with a specified password.

Properties

Property Description
file_type The type of the file, indicating its format (e.g., docx, pdf, xlsx, etc.). (inherited from LoadOptions)
format_family The format family of the document, indicating its type (e.g., Image, Pdf, Spreadsheet, etc.). (inherited from LoadOptions)
password The password for opening an encrypted document. (inherited from LoadOptions)

Fields

Field Description
DEFAULT Gets the default value for the class.

Example

from groupdocs.watermark import Watermarker
from groupdocs.watermark.options.word_processing import WordProcessingLoadOptions

def process_document():
    with Watermarker("./document.docx", WordProcessingLoadOptions()) as watermarker:
        content = watermarker.get_content()
        # perform operations on the content, e.g., protect, unprotect, add watermarks
        watermarker.save("./output.docx")

if __name__ == "__main__":
    process_document()

See Also