com.groupdocs.viewer.domain

Class Watermark



  • public class Watermark
    extends Object

    Represents a container for the page watermark properties.

    • Constructor Detail

      • Watermark

        public Watermark(String text)

        Initializes a new instance of the Watermark class.

        Parameters:
        text - The text.
      • Watermark

        public Watermark(String text,
                 Color color,
                 WatermarkPosition position,
                 Float width)

        Initializes a new instance of the Watermark class.

        Parameters:
        text - The text.
        color - The color.
        position - The position.
        width - The width.
    • Method Detail

      • getText

        public String getText()

        The text.

        Value: The text.
        Returns:
        the text
      • setText

        public void setText(String value)

        The text.

        Value: The text.
        Parameters:
        value - the value
      • getColor

        public Color getColor()

        The color.

        Value: The color.
        Returns:
        the color
      • setColor

        public void setColor(Color value)
        Sets color.
        Parameters:
        value - the value
      • getPosition

        public WatermarkPosition getPosition()

        The position.

        Value: The position.
        Returns:
        the position
      • setPosition

        public void setPosition(WatermarkPosition value)

        The position.

        Value: The position.
        Parameters:
        value - the value
      • getWidth

        public Float getWidth()

        The width.

        Value: The width.
        Returns:
        the width
      • setWidth

        public void setWidth(Float value)

        The width.

        Value: The width.
        Parameters:
        value - the value
      • getFontName

        public String getFontName()

        The watermark text font name e.g. "MS Gothic" or "Verdana". In case you want to specify custom font please add path to the directory which contains font file(s) to viewerConfig.setFontDirectories()

        Value: The font name.
      • setFontName

        public void setFontName(String value)

        The watermark text font name e.g. "MS Gothic" or "Verdana". In case you want to specify custom font please add path to the directory which contains font file(s) to viewerConfig.setFontDirectories()

        Value: The font name.