Gets the unit of measurement [UnitOfMeasurement](../../com.groupdocs.watermark.common/unitofmeasurement) of this [PossibleWatermark](../../com.groupdocs.watermark.search/possiblewatermark).
Gets the parent of this [PossibleWatermark](../../com.groupdocs.watermark.search/possiblewatermark).
Returns:ContentPart - The parent of this [PossibleWatermark](../../com.groupdocs.watermark.search/possiblewatermark).
getPageNumber()
public Integer getPageNumber()
Returns:
java.lang.Integer
getWidth()
public double getWidth()
Gets the width of this [PossibleWatermark](../../com.groupdocs.watermark.search/possiblewatermark).
Returns:
double - The width of this [PossibleWatermark](../../com.groupdocs.watermark.search/possiblewatermark).
getHeight()
public double getHeight()
Gets the height of this [PossibleWatermark](../../com.groupdocs.watermark.search/possiblewatermark).
Returns:
double - The height of this [PossibleWatermark](../../com.groupdocs.watermark.search/possiblewatermark).
getX()
public double getX()
Gets the x-coordinate of this [PossibleWatermark](../../com.groupdocs.watermark.search/possiblewatermark).
Returns:
double - The x-coordinate of this [PossibleWatermark](../../com.groupdocs.watermark.search/possiblewatermark).
getY()
public double getY()
Gets the y-coordinate of this [PossibleWatermark](../../com.groupdocs.watermark.search/possiblewatermark).
Returns:
double - The y-coordinate of this [PossibleWatermark](../../com.groupdocs.watermark.search/possiblewatermark).
getRotateAngle()
public double getRotateAngle()
Gets the rotate angle of this [PossibleWatermark](../../com.groupdocs.watermark.search/possiblewatermark) in degrees.
Returns:
double - The rotate angle of this [PossibleWatermark](../../com.groupdocs.watermark.search/possiblewatermark).
getText()
public String getText()
Gets the text of this [PossibleWatermark](../../com.groupdocs.watermark.search/possiblewatermark).
Returns:
java.lang.String - The text of this [PossibleWatermark](../../com.groupdocs.watermark.search/possiblewatermark).
setText(String value)
public void setText(String value)
Sets the text of this [PossibleWatermark](../../com.groupdocs.watermark.search/possiblewatermark).
Parameters:
Parameter
Type
Description
value
java.lang.String
The text of this [PossibleWatermark](../../com.groupdocs.watermark.search/possiblewatermark).
getFormattedTextFragments()
public FormattedTextFragmentCollection getFormattedTextFragments()
Gets the collection of formatted text fragments of this [PossibleWatermark](../../com.groupdocs.watermark.search/possiblewatermark).
Returns:FormattedTextFragmentCollection - The collection of formatted text fragments of this [PossibleWatermark](../../com.groupdocs.watermark.search/possiblewatermark).
getImageData()
public final byte[] getImageData()
Gets or sets the image of this [PossibleWatermark](../../com.groupdocs.watermark.search/possiblewatermark).
Returns:
byte[] - The image of this [PossibleWatermark](../../com.groupdocs.watermark.search/possiblewatermark) or null if the watermark has no image.
setImageData(byte[] value)
public final void setImageData(byte[] value)
Parameters:
Parameter
Type
Description
value
byte[]
getUnitOfMeasurement()
public int getUnitOfMeasurement()
Gets the unit of measurement [UnitOfMeasurement](../../com.groupdocs.watermark.common/unitofmeasurement) of this [PossibleWatermark](../../com.groupdocs.watermark.search/possiblewatermark).
Returns:
int - The unit of measurement [UnitOfMeasurement](../../com.groupdocs.watermark.common/unitofmeasurement) of this [PossibleWatermark](../../com.groupdocs.watermark.search/possiblewatermark).
getCollection()
public final PossibleWatermarkCollection getCollection()