set_image method

set_image(image_path, options)

Adds Image watermark into the document.

def set_image(self, image_path: str, options: aspose.words.ImageWatermarkOptions):
    ...
ParameterTypeDescription
image_pathstrPath to the image file that is displayed as a watermark.
optionsImageWatermarkOptionsDefines additional options for the image watermark.

Remarks

If ImageWatermarkOptions is None, the watermark will be set with default options.

Exceptions

exceptioncondition
RuntimeError (Proxy error(ArgumentNullException))Throws when the path is None.

See Also