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):
...
Parameter | Type | Description |
---|---|---|
image_path | str | Path to the image file that is displayed as a watermark. |
options | ImageWatermarkOptions | Defines additional options for the image watermark. |
Remarks
If ImageWatermarkOptions is None
, the watermark will be set with default options.
Exceptions
exception | condition |
---|---|
RuntimeError (Proxy error(ArgumentNullException)) | Throws when the path is None . |
See Also
- module aspose.words
- class Watermark