com.groupdocs.viewer.options

Class Watermark



  • public class Watermark
    extends Object

    Represents text watermark.

    • Constructor Detail

    • Method Detail

      • getColor

        public final Color getColor()

        The watermark color. Default value is Color.getRed().

      • getFontName

        public final String getFontName()

        The font name used for the watermark.

      • getPosition

        public final Position getPosition()

        The watermark position. Default value is Position.DIAGONAL.

        Returns:
        The watermark position.
      • getSize

        public final Size getSize()

        The watermark size. Default value is Size.FULL_SIZE.

      • getText

        public final String getText()
        The watermark text.
        Returns:
        The watermark text.
      • setColor

        public final void setColor(Color value)

        The watermark color. Default value is Color.getRed().

      • setFontName

        public final void setFontName(String value)

        The font name used for the watermark.

      • setPosition

        public final void setPosition(Position value)

        The watermark position. Default value is Position.DIAGONAL.

        Parameters:
        value - The watermark position.
      • setSize

        public final void setSize(Size value)

        The watermark size. Default value is Size.FULL_SIZE.