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

NameTypeAccessDescription
typeintReadGets the watermark type.

Methods

SignatureDescription
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() → intGets the watermark type.
remove()Removes the watermark.

See Also