PdfTextPossibleWatermark
Inheritance: java.lang.Object, com.groupdocs.watermark.search.PossibleWatermark
public class PdfTextPossibleWatermark extends PossibleWatermark
Represents possible watermark in a pdf document text.
Constructors
| Constructor | Description |
|---|---|
| PdfTextPossibleWatermark(PdfPage parent, TextFragment fragment) |
Methods
| Method | Description |
|---|---|
| getParent() | Gets the parent of this [PdfTextPossibleWatermark](../../com.groupdocs.watermark.search/pdftextpossiblewatermark). |
| getWidth() | Gets the width of this [PdfTextPossibleWatermark](../../com.groupdocs.watermark.search/pdftextpossiblewatermark) in points. |
| getHeight() | Gets the height of this [PdfTextPossibleWatermark](../../com.groupdocs.watermark.search/pdftextpossiblewatermark) in points. |
| getX() | Gets the horizontal offset of this [PdfTextPossibleWatermark](../../com.groupdocs.watermark.search/pdftextpossiblewatermark) from page left border in points. |
| getY() | Gets the vertical offset of this [PdfTextPossibleWatermark](../../com.groupdocs.watermark.search/pdftextpossiblewatermark) from page bottom border in points. |
| getRotateAngle() | Gets the rotate angle of this [PdfTextPossibleWatermark](../../com.groupdocs.watermark.search/pdftextpossiblewatermark) in degrees. |
| getText() | Gets the text of this [PdfTextPossibleWatermark](../../com.groupdocs.watermark.search/pdftextpossiblewatermark). |
| setText(String value) | Sets the text of this [PdfTextPossibleWatermark](../../com.groupdocs.watermark.search/pdftextpossiblewatermark). |
| getFormattedTextFragments() | Gets the collection of formatted text fragments of this [PdfTextPossibleWatermark](../../com.groupdocs.watermark.search/pdftextpossiblewatermark). |
| getUnitOfMeasurement() | Gets the [UnitOfMeasurement](../../com.groupdocs.watermark.common/unitofmeasurement) of this [PdfTextPossibleWatermark](../../com.groupdocs.watermark.search/pdftextpossiblewatermark). |
| remove() |
PdfTextPossibleWatermark(PdfPage parent, TextFragment fragment)
public PdfTextPossibleWatermark(PdfPage parent, TextFragment fragment)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| parent | PdfPage | |
| fragment | com.aspose.pdf.TextFragment |
getParent()
public ContentPart getParent()
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()