setImage method
setImage(image)
setImage(image: Aspose.Words.JSImage)
Parameter | Type | Description |
---|
image | JSImage | |
setImage(image, options)
setImage(image: Aspose.Words.JSImage, options: Aspose.Words.ImageWatermarkOptions)
setImage(imagePath, options)
Adds Image watermark into the document.
setImage(imagePath: string, options: Aspose.Words.ImageWatermarkOptions)
Parameter | Type | Description |
---|
imagePath | string | Path to the image file that is displayed as a watermark. |
options | ImageWatermarkOptions | Defines additional options for the image watermark. |
If ImageWatermarkOptions is null
, the watermark will be set with default options.
Exceptions
exception | condition |
---|
RuntimeError (Proxy error(ArgumentNullException)) | Throws when the path is null . |
setImage(imageStream, options)
Adds Image watermark into the document.
setImage(imageStream: Buffer, options: Aspose.Words.ImageWatermarkOptions)
Parameter | Type | Description |
---|
imageStream | Buffer | The stream containing the image data that is displayed as a watermark. |
options | ImageWatermarkOptions | Defines additional options for the image watermark. |
If ImageWatermarkOptions is null
, the watermark will be set with default options.
Exceptions
exception | condition |
---|
RuntimeError (Proxy error(ArgumentNullException)) | Throws when the path is null . |
See Also