com.groupdocs.conversion.options.save

Class WatermarkOptions

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


    public final class WatermarkOptions
    extends Object
    implements com.aspose.ms.System.ICloneable, Cloneable

    Options for settings watermark to the converted document

    • Constructor Detail

      • WatermarkOptions

        public WatermarkOptions()

        Create WatermarkOptions class and set watermark text

    • Method Detail

      • getText

        public final String getText()

        Watermark text

        Returns:
      • setText

        public final void setText(String value)

        Watermark text

        Parameters:
        value -
      • getFont

        public final Font getFont()

        Watermark font name if text watermark is applied

        Returns:
      • getFontInternal

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

        public final void setFont(Font value)

        Watermark font name if text watermark is applied

        Parameters:
        value -
      • setFontInternal

        public void setFontInternal(com.aspose.ms.System.Drawing.Font value)
      • getColor

        public final Color getColor()

        Watermark font color if text watermark is applied

        Returns:
      • getColorInternal

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

        public final void setColor(Color value)

        Watermark font color if text watermark is applied

        Parameters:
        value -
      • setColorInternal

        public void setColorInternal(com.aspose.ms.System.Drawing.Color value)
      • getWidth

        public final int getWidth()

        Watermark width

        Returns:
      • setWidth

        public final void setWidth(int value)

        Watermark width

        Parameters:
        value -
      • getHeight

        public final int getHeight()

        Watermark height

        Returns:
      • setHeight

        public final void setHeight(int value)

        Watermark height

        Parameters:
        value -
      • getTop

        public final int getTop()

        Watermark top position

        Returns:
      • setTop

        public final void setTop(int value)

        Watermark top position

        Parameters:
        value -
      • getLeft

        public final int getLeft()

        Watermark left position

        Returns:
      • setLeft

        public final void setLeft(int value)

        Watermark left position

        Parameters:
        value -
      • getRotationAngle

        public final int getRotationAngle()

        Watermark rotation angle

        Returns:
      • setRotationAngle

        public final void setRotationAngle(int value)

        Watermark rotation angle

        Parameters:
        value -
      • getTransparency

        public final double getTransparency()

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

        Returns:
      • setTransparency

        public final void setTransparency(double value)

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

        Parameters:
        value -
      • getBackground

        public final 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 final 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 -
      • getImage

        public final byte[] getImage()

        Image watermark

        Returns:
      • setImage

        public final void setImage(byte[] value)

        Image watermark

        Parameters:
        value -
      • deepClone

        public final Object deepClone()

        Clone current instance

        Specified by:
        deepClone in interface com.aspose.ms.System.ICloneable
        Returns:
      • memberwiseClone

        protected Object memberwiseClone()