__init__ constructor

On this page

init

Initializes a WatermarkTextOptions instance with the specified watermark text.

def __init__(self, text):
    ...
Parameter Type Description
text str The text to be used as watermark.

Example

from groupdocs.conversion.options.convert import WatermarkTextOptions

# Create a watermark with the text "DRAFT"
watermark = WatermarkTextOptions("DRAFT")

See Also

On this page