WatermarkAnnotation
Inheritance: java.lang.Object, com.aspose.pdf.BaseParagraph com.aspose.pdf.Annotation com.aspose.pdf.WatermarkAnnotation, com.aspose.pdf.BaseParagraph, com.aspose.pdf.Annotation com.aspose.pdf.WatermarkAnnotation, com.aspose.pdf.Annotation, com.aspose.pdf.WatermarkAnnotation
All Implemented Interfaces: com.aspose.ms.System.ICloneable
public class WatermarkAnnotation extends Annotation
Class describes Watermark annotation object.
Constructors
| Constructor | Description |
|---|---|
| WatermarkAnnotation | Constructor for Watermark annotation class. |
Methods
| Method | Description |
|---|---|
| accept | Apply visitor for annotation. |
| changeAfterResize | Overrides the definition in the base class with an empty body. |
| getAnnotationType | Gets annotation type. |
| getFixedPrint | Fixed print object of Watermark annotation. |
| getOpacity | Gets or sets opacity of the annotation. |
| setOpacity | Gets or sets opacity of the annotation. |
| setText | Set text of the annotation. |
| setTextAndState | Set text of the annotation. |
WatermarkAnnotation
Constructor for Watermark annotation class.
accept
Apply visitor for annotation.
changeAfterResize
Overrides the definition in the base class with an empty body.
getAnnotationType
public AnnotationType getAnnotationType()
Gets annotation type.
Returns: AnnotationType element
getFixedPrint
public FixedPrint getFixedPrint()
Fixed print object of Watermark annotation.
Returns: FixedPrint object
getOpacity
public double getOpacity()
Gets or sets opacity of the annotation.
Returns: double value
setOpacity
public void setOpacity(double value)
Gets or sets opacity of the annotation.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | double value |
setText
Set text of the annotation.
setTextAndState
Set text of the annotation.