com.groupdocs.conversion.converter.option

Class WatermarkOptions



  • public final class WatermarkOptions
    extends Object

    Options for settings watermark to the converted document

    • Constructor Detail

      • WatermarkOptions

        public WatermarkOptions()

        Create WatermarkOptions class and set watermark text

    • Method Detail

      • getText

        public String getText()

        Watermark text

        Returns:
      • setText

        public void setText(String value)

        Watermark text

        Parameters:
        value -
      • getFont

        public Font getFont()

        Watermark font name

        Returns:
      • getFontInternal

        public com.aspose.ms.System.Drawing.Font getFontInternal()
      • setFont

        public void setFont(Font value)

        Watermark font name

        Parameters:
        value -
      • getColor

        public Color getColor()

        Watermark font color

        Returns:
      • getColorInternal

        public com.aspose.ms.System.Drawing.Color getColorInternal()
      • setColor

        public void setColor(Color value)

        Watermark font color

        Parameters:
        value -
      • getWidth

        public int getWidth()

        Watermark width

        Returns:
      • setWidth

        public void setWidth(int value)

        Watermark width

        Parameters:
        value -
      • getHeight

        public int getHeight()

        Watermark height

        Returns:
      • setHeight

        public void setHeight(int value)

        Watermark height

        Parameters:
        value -
      • getTop

        public int getTop()

        Watermark top position

        Returns:
      • setTop

        public void setTop(int value)

        Watermark top position

        Parameters:
        value -
      • getLeft

        public int getLeft()

        Watermark left position

        Returns:
      • setLeft

        public void setLeft(int value)

        Watermark left position

        Parameters:
        value -
      • getRotationAngle

        public int getRotationAngle()

        Watermark rotation angle

        Returns:
      • setRotationAngle

        public void setRotationAngle(int value)

        Watermark rotation angle

        Parameters:
        value -
      • getTransparency

        public double getTransparency()

        Watermark transparency. Value between 0 and 1. Value 0 is fully visible, value 1 is invisible.

        Returns:
      • setTransparency

        public void setTransparency(double value)

        Watermark transparency. Value between 0 and 1. Value 0 is fully visible, value 1 is invisible.

        Parameters:
        value -
      • getBackground

        public boolean getBackground()

        Indicates that the watermark is stamped as background. If the value is true, the watermark is layed at the bottom. By default is false and the watermark is layed on top.

        Returns:
      • setBackground

        public void setBackground(boolean value)

        Indicates that the watermark is stamped as background. If the value is true, the watermark is layed at the bottom. By default is false and the watermark is layed on top.

        Parameters:
        value -