public class PdfTextPossibleWatermark extends PossibleWatermark
Represents possible watermark in a pdf document text.
| Constructor and Description |
|---|
PdfTextPossibleWatermark(PdfPage parent,
com.aspose.pdf.TextFragment fragment) |
| Modifier and Type | Method and Description |
|---|---|
FormattedTextFragmentCollection |
getFormattedTextFragments()
Gets the collection of formatted text fragments of this
. |
double |
getHeight()
Gets the height of this
in points. |
ContentPart |
getParent()
Gets the parent of this
. |
double |
getRotateAngle()
Gets the rotate angle of this
in degrees. |
String |
getText()
Gets the text of this
. |
int |
getUnitOfMeasurement()
Gets the
of this . |
double |
getWidth()
Gets the width of this
in points. |
double |
getX()
Gets the horizontal offset of this
from page left border in points. |
double |
getY()
Gets the vertical offset of this
from page bottom border in points. |
void |
remove() |
void |
setText(String value)
Sets the text of this
. |
getCollection, getImageData, getImageInternally, getImageSize, getPageNumber, setCollection, setImageDatapublic PdfTextPossibleWatermark(PdfPage parent, com.aspose.pdf.TextFragment fragment)
public FormattedTextFragmentCollection getFormattedTextFragments()
PdfTextPossibleWatermark.getFormattedTextFragments in class PossibleWatermarkPdfTextPossibleWatermark.public double getHeight()
PdfTextPossibleWatermark in points.getHeight in class PossibleWatermarkPdfTextPossibleWatermark in points.public ContentPart getParent()
PdfTextPossibleWatermark.getParent in class PossibleWatermarkPdfTextPossibleWatermark.public double getRotateAngle()
PdfTextPossibleWatermark in degrees.getRotateAngle in class PossibleWatermarkpublic String getText()
PdfTextPossibleWatermark.getText in class PossibleWatermarkPdfTextPossibleWatermark.public int getUnitOfMeasurement()
UnitOfMeasurement
of this PdfTextPossibleWatermark.getUnitOfMeasurement in class PossibleWatermarkUnitOfMeasurement
of this PdfTextPossibleWatermark.public double getWidth()
PdfTextPossibleWatermark in points.getWidth in class PossibleWatermarkPdfTextPossibleWatermark in points.public double getX()
PdfTextPossibleWatermark
from page left border in points.getX in class PossibleWatermarkPdfTextPossibleWatermark.public double getY()
PdfTextPossibleWatermark
from page bottom border in points.getY in class PossibleWatermarkPdfTextPossibleWatermark.public void remove()
remove in class PossibleWatermarkpublic void setText(String value)
PdfTextPossibleWatermark.setText in class PossibleWatermarkvalue - The text of this PdfTextPossibleWatermark.Copyright © 2026. All rights reserved.