com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class WatermarkAnnotation

  • All Implemented Interfaces:
    com.aspose.ms.System.ICloneable


    public class WatermarkAnnotation
    extends Annotation
    • Constructor Detail

      • WatermarkAnnotation

        public WatermarkAnnotation(Page page,
                           Rectangle rect)

        Constuctore for Watermark annotation class.

        Parameters:
        page - Page where annotation should be placed.
        rect - Position of the annotation.
    • Method Detail

      • setText

        public void setText(FormattedText text)

        Set text of the annotation.

        Parameters:
        text - FormattedText object
      • setTextAndState

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

        Set text of the annotation.

        Parameters:
        text - String array
        textState - TextState object
      • getFixedPrint

        public FixedPrint getFixedPrint()

        Fixed print object of Watermark annotation.

        Returns:
        FixedPrint object
      • getAnnotationType

        public int getAnnotationType()
        Description copied from class: Annotation

        Gets type of annotation.

        Specified by:
        getAnnotationType in class Annotation
        Returns:
        int value
        See Also:
        AnnotationType
      • accept

        public void accept(AnnotationSelector visitor)
        Description copied from class: Annotation

        Accepts visitor for annotation processing.

        Specified by:
        accept in class Annotation
        Parameters:
        visitor - AnnotationSelector 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:
        value - double value