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

ConstructorDescription
WatermarkAnnotationConstructor for Watermark annotation class.

Methods

MethodDescription
acceptApply visitor for annotation.
changeAfterResizeOverrides the definition in the base class with an empty body.
getAnnotationTypeGets annotation type.
getFixedPrintFixed print object of Watermark annotation.
getOpacityGets or sets opacity of the annotation.
setOpacityGets or sets opacity of the annotation.
setTextSet text of the annotation.
setTextAndStateSet 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:

ParameterTypeDescription
valuedouble value

setText

Set text of the annotation.

setTextAndState

Set text of the annotation.