__init__ constructor

On this page

init

Initializes a new instance of the WordProcessingWatermarkableImage class using specified image data.

def __init__(self, image_data):
    ...
Parameter Type Description
image_data list[int] The list of unsigned bytes from which to create the WordProcessingWatermarkableImage.

Example

import groupdocs.watermark as gw
import groupdocs.watermark.contents.wordprocessing as gwc_wp

with open("test.png", "rb") as f:
    img_bytes = f.read()

image = gwc_wp.WordProcessingWatermarkableImage(img_bytes)

See Also

On this page