Watermark
Overview
Watermark is a class in Aspose.Words FOSS for Java.
Represents class to work with document watermark.
Edition status of its 5 listed members (a property and its accessor methods are listed separately, overloads once): 5 not yet exercised by a verified example.
This class declares 8 methods for Watermark objects in Java programs.
Available methods include: getType, remove, setImage, setText.
Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package.
Properties: type.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
type | int | Read | Gets the watermark type. |
Methods
| Signature | Description |
|---|---|
setText(text: String) | Adds Text watermark into the document. |
setText(text: String, options: TextWatermarkOptions) | Adds Text watermark into the document. |
setImage(image: BufferedImage) | Adds Image watermark into the document. |
setImage(image: BufferedImage, options: ImageWatermarkOptions) | Adds Image watermark into the document. |
setImage(imagePath: String, options: ImageWatermarkOptions) | Adds Image watermark into the document. |
setImage(imageStream: java.io.InputStream, options: ImageWatermarkOptions) | Sets the image value. |
getType() → int | Gets the watermark type. |
remove() | Removes the watermark. |