WatermarkAnnotation

Inheritance: java.lang.Object, com.aspose.pdf.BaseParagraph, com.aspose.pdf.Annotation

public class WatermarkAnnotation extends Annotation

Class describes Watermark annotation object.

Constructors

ConstructorDescription
WatermarkAnnotation(Page page, Rectangle rect)Constructor for Watermark annotation class.

Methods

MethodDescription
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:

ParameterTypeDescription
pagePagePage where annotation should be placed.
rectRectanglePosition of the annotation.

setText(FormattedText text)

public void setText(FormattedText text)

Set text of the annotation.

Parameters:

ParameterTypeDescription
textFormattedTextFormattedText Text value.

setTextAndState(String[] text, TextState textState)

public void setTextAndState(String[] text, TextState textState)

Set text of the annotation.

Parameters:

ParameterTypeDescription
textjava.lang.String[]String array (Text value)
textStateTextStateTextState 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:

ParameterTypeDescription
visitorAnnotationSelectorVisitor 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:

ParameterTypeDescription
valuedoubledouble value

changeAfterResize(Matrix transform)

public void changeAfterResize(Matrix transform)

Overrides the definition in the base class with an empty body.

Parameters:

ParameterTypeDescription
transformMatrixMatrix specifying the transformation.