Gets the horizontal offset of this [PdfTextPossibleWatermark](../../com.groupdocs.watermark.search/pdftextpossiblewatermark) from page left border in points.
Gets the vertical offset of this [PdfTextPossibleWatermark](../../com.groupdocs.watermark.search/pdftextpossiblewatermark) from page bottom border in points.
Gets the [UnitOfMeasurement](../../com.groupdocs.watermark.common/unitofmeasurement) of this [PdfTextPossibleWatermark](../../com.groupdocs.watermark.search/pdftextpossiblewatermark).
Gets the parent of this [PdfTextPossibleWatermark](../../com.groupdocs.watermark.search/pdftextpossiblewatermark).
Returns:ContentPart - The parent of this [PdfTextPossibleWatermark](../../com.groupdocs.watermark.search/pdftextpossiblewatermark).
getWidth()
public double getWidth()
Gets the width of this [PdfTextPossibleWatermark](../../com.groupdocs.watermark.search/pdftextpossiblewatermark) in points.
Returns:
double - The width of this [PdfTextPossibleWatermark](../../com.groupdocs.watermark.search/pdftextpossiblewatermark) in points.
getHeight()
public double getHeight()
Gets the height of this [PdfTextPossibleWatermark](../../com.groupdocs.watermark.search/pdftextpossiblewatermark) in points.
Returns:
double - The height of this [PdfTextPossibleWatermark](../../com.groupdocs.watermark.search/pdftextpossiblewatermark) in points.
getX()
public double getX()
Gets the horizontal offset of this [PdfTextPossibleWatermark](../../com.groupdocs.watermark.search/pdftextpossiblewatermark) from page left border in points.
Returns:
double - The x-coordinate of this [PdfTextPossibleWatermark](../../com.groupdocs.watermark.search/pdftextpossiblewatermark).
getY()
public double getY()
Gets the vertical offset of this [PdfTextPossibleWatermark](../../com.groupdocs.watermark.search/pdftextpossiblewatermark) from page bottom border in points.
Returns:
double - The y-coordinate of this [PdfTextPossibleWatermark](../../com.groupdocs.watermark.search/pdftextpossiblewatermark).
getRotateAngle()
public double getRotateAngle()
Gets the rotate angle of this [PdfTextPossibleWatermark](../../com.groupdocs.watermark.search/pdftextpossiblewatermark) in degrees.
Returns:
double - The value is always 0 for this type of possible watermark.
getText()
public String getText()
Gets the text of this [PdfTextPossibleWatermark](../../com.groupdocs.watermark.search/pdftextpossiblewatermark).
Returns:
java.lang.String - The text of this [PdfTextPossibleWatermark](../../com.groupdocs.watermark.search/pdftextpossiblewatermark).
setText(String value)
public void setText(String value)
Sets the text of this [PdfTextPossibleWatermark](../../com.groupdocs.watermark.search/pdftextpossiblewatermark).
Parameters:
Parameter
Type
Description
value
java.lang.String
The text of this [PdfTextPossibleWatermark](../../com.groupdocs.watermark.search/pdftextpossiblewatermark).
getFormattedTextFragments()
public FormattedTextFragmentCollection getFormattedTextFragments()
Gets the collection of formatted text fragments of this [PdfTextPossibleWatermark](../../com.groupdocs.watermark.search/pdftextpossiblewatermark).
Returns:FormattedTextFragmentCollection - The collection of formatted text fragments of this [PdfTextPossibleWatermark](../../com.groupdocs.watermark.search/pdftextpossiblewatermark).
getUnitOfMeasurement()
public int getUnitOfMeasurement()
Gets the [UnitOfMeasurement](../../com.groupdocs.watermark.common/unitofmeasurement) of this [PdfTextPossibleWatermark](../../com.groupdocs.watermark.search/pdftextpossiblewatermark).
Returns:
int - [UnitOfMeasurement](../../com.groupdocs.watermark.common/unitofmeasurement) of this [PdfTextPossibleWatermark](../../com.groupdocs.watermark.search/pdftextpossiblewatermark).
remove()
public void remove()
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.