WatermarkAnnotation
Contents
[
Hide
]Inheritance: java.lang.Object, com.aspose.pdf.BaseParagraph, com.aspose.pdf.Annotation
public class WatermarkAnnotation extends Annotation
Class describes Watermark annotation object.
Constructors
Constructor | Description |
---|---|
WatermarkAnnotation(Page page, Rectangle rect) | Constructor for Watermark annotation class. |
Methods
Method | Description |
---|---|
setText(FormattedText text) | Set text of the annotation. |
setTextAndState(String[] text, TextState textState) | Set text of the annotation. |
getFixedPrint() | Fixed print object of Watermark annotation. |
getAnnotationType() | Gets annotation type. |
accept(AnnotationSelector visitor) | Apply visitor for annotation. |
getOpacity() | Gets or sets opacity of the annotation. |
setOpacity(double value) | Gets or sets opacity of the annotation. |
changeAfterResize(Matrix transform) | Overrides the definition in the base class with an empty body. |
WatermarkAnnotation(Page page, Rectangle rect)
public WatermarkAnnotation(Page page, Rectangle rect)
Constructor for Watermark annotation class.
Parameters:
Parameter | Type | Description |
---|---|---|
page | Page | Page where annotation should be placed. |
rect | Rectangle | Position of the annotation. |
setText(FormattedText text)
public void setText(FormattedText text)
Set text of the annotation.
Parameters:
Parameter | Type | Description |
---|---|---|
text | FormattedText | FormattedText Text value. |
setTextAndState(String[] text, TextState textState)
public void setTextAndState(String[] text, TextState textState)
Set text of the annotation.
Parameters:
Parameter | Type | Description |
---|---|---|
text | java.lang.String[] | String array (Text value) |
textState | TextState | TextState object |
getFixedPrint()
public FixedPrint getFixedPrint()
Fixed print object of Watermark annotation.
Returns: FixedPrint - FixedPrint object
getAnnotationType()
public AnnotationType getAnnotationType()
Gets annotation type.
Returns: AnnotationType - AnnotationType element
accept(AnnotationSelector visitor)
public void accept(AnnotationSelector visitor)
Apply visitor for annotation.
Parameters:
Parameter | Type | Description |
---|---|---|
visitor | AnnotationSelector | Visitor object. |
getOpacity()
public double getOpacity()
Gets or sets opacity of the annotation.
Returns: double - double value
setOpacity(double value)
public void setOpacity(double value)
Gets or sets opacity of the annotation.
Parameters:
Parameter | Type | Description |
---|---|---|
value | double | double value |
changeAfterResize(Matrix transform)
public void changeAfterResize(Matrix transform)
Overrides the definition in the base class with an empty body.
Parameters:
Parameter | Type | Description |
---|---|---|
transform | Matrix | Matrix specifying the transformation. |