com.groupdocs.signature.options.sign

Class ImageSignOptions

    • Constructor Detail

      • ImageSignOptions

        public ImageSignOptions()

        Initializes a new instance of the ImageSignOptions class with default values.

      • ImageSignOptions

        public ImageSignOptions(InputStream imageStream)

        Initializes a new instance of the ImageSignOptions class with image stream.

        Parameters:
        imageStream - Image stream
      • ImageSignOptions

        public ImageSignOptions(String imageFilePath)

        Initializes a new instance of the ImageSignOptions class with image file.

        Parameters:
        imageFilePath - Image file path
    • Method Detail

      • dispose

        public final void dispose()

        Clears internal resources

        Specified by:
        dispose in interface com.aspose.ms.System.IDisposable
      • fromBase64

        public static ImageSignOptions fromBase64(String base64Content)

        Creates a new instance of the ImageSignOptions class with predefined Image from Base64.

        Parameters:
        base64Content - Image content in Base64 string format
        Returns:
      • getAllPages

        public boolean getAllPages()

        Put signature on all document pages. This property can only be used for multi-frames image formats (Tiff).

        Overrides:
        getAllPages in class SignOptions
      • getBorder

        public final Border getBorder()

        Specify border settings

        Returns:
      • getHeight

        public final int getHeight()

        Height of Signature on Document Page in Measure values (pixels, percents or millimeters see MeasureType SizeMeasureType).

        Specified by:
        getHeight in interface IRectangle
      • getHorizontalAlignment

        public final int getHorizontalAlignment()

        Horizontal alignment of signature on document page.

        Specified by:
        getHorizontalAlignment in interface IAlignment
      • getImageFilePath

        public final String getImageFilePath()

        Gets or sets the signature image file path. This property is used only if ImageStream is not specified.

      • getImageStream

        public final InputStream getImageStream()

        Gets or sets the signature image stream. If this property is specified it is always used instead ImageGuid.

        Overrides:
        getImageStream in class SignOptions
      • getLeft

        public int getLeft()

        Left X position of Signature on Document Page in Measure values (pixels, percents or millimeters see MeasureType LocationMeasureType). (works if horizontal alignment is not specified).

        Specified by:
        getLeft in interface IRectangle
      • getLocationMeasureType

        public int getLocationMeasureType()

        Measure type (pixels, percents or millimeters) for Left and Top properties.

        Specified by:
        getLocationMeasureType in interface IRectangle
      • getMargin

        public Padding getMargin()

        Gets or sets the space between Sign and Document edges. (works ONLY if horizontal or vertical alignment are specified).

        Specified by:
        getMargin in interface IAlignment
      • getMarginMeasureType

        public int getMarginMeasureType()

        Gets or sets the measure type (pixels, percents or millimeters) for Margin.

        Specified by:
        getMarginMeasureType in interface IAlignment
      • getRectangle

        public final Rectangle getRectangle()

        Rectangle of area to put the image on document.

      • getRotationAngle

        public final int getRotationAngle()

        Rotation angle of signature on document page (clockwise).

        Specified by:
        getRotationAngle in interface IRotation
      • getSizeMeasureType

        public int getSizeMeasureType()

        Measure type (pixels, percents or millimeters) for Width and Height properties.

        Specified by:
        getSizeMeasureType in interface IRectangle
      • getStretch

        public final int getStretch()

        Stretch mode on Document Page.

        Specified by:
        getStretch in interface IRectangle
      • getTop

        public int getTop()

        Top Y Position of Signature on Document Page in Measure values (pixels, percents or millimeters see MeasureType LocationMeasureType). (works if vertical alignment is not specified).

        Specified by:
        getTop in interface IRectangle
      • getTransparency

        public final double getTransparency()

        Gets or sets the signature transparency (value from 0.0 (opaque) through 1.0 (clear)). Default value is 0 (opaque).

        Specified by:
        getTransparency in interface ITransparency
      • getVerticalAlignment

        public final int getVerticalAlignment()

        Vertical alignment of signature on document page.

        Specified by:
        getVerticalAlignment in interface IAlignment
      • getWidth

        public final int getWidth()

        Width of Signature on Document Page in Measure values (pixels, percents or millimeters MeasureType SizeMeasureType).

        Specified by:
        getWidth in interface IRectangle
      • setAllPages

        public void setAllPages(boolean value)

        Put signature on all document pages. This property can only be used for multi-frames image formats (Tiff).

        Overrides:
        setAllPages in class SignOptions
      • setBorder

        public final void setBorder(Border value)

        Specify border settings

      • setHeight

        public final void setHeight(int value)

        Height of Signature on Document Page in Measure values (pixels, percents or millimeters see MeasureType SizeMeasureType).

        Specified by:
        setHeight in interface IRectangle
      • setHorizontalAlignment

        public final void setHorizontalAlignment(int value)

        Horizontal alignment of signature on document page.

        Specified by:
        setHorizontalAlignment in interface IAlignment
      • setImageFilePath

        public final void setImageFilePath(String value)

        Gets or sets the signature image file path. This property is used only if ImageStream is not specified.

      • setImageStream

        public final void setImageStream(InputStream value)

        Gets or sets the signature image stream. If this property is specified it is always used instead ImageGuid.

      • setLeft

        public void setLeft(int value)

        Left X position of Signature on Document Page in Measure values (pixels, percents or millimeters see MeasureType LocationMeasureType). (works if horizontal alignment is not specified).

        Specified by:
        setLeft in interface IRectangle
      • setLocationMeasureType

        public void setLocationMeasureType(int value)

        Measure type (pixels, percents or millimeters) for Left and Top properties.

        Specified by:
        setLocationMeasureType in interface IRectangle
      • setMargin

        public void setMargin(Padding value)

        Gets or sets the space between Sign and Document edges. (works ONLY if horizontal or vertical alignment are specified).

        Specified by:
        setMargin in interface IAlignment
      • setMarginMeasureType

        public void setMarginMeasureType(int value)

        Gets or sets the measure type (pixels, percents or millimeters) for Margin.

        Specified by:
        setMarginMeasureType in interface IAlignment
      • setRotationAngle

        public final void setRotationAngle(int value)

        Rotation angle of signature on document page (clockwise).

        Specified by:
        setRotationAngle in interface IRotation
      • setSizeMeasureType

        public void setSizeMeasureType(int value)

        Measure type (pixels, percents or millimeters) for Width and Height properties.

        Specified by:
        setSizeMeasureType in interface IRectangle
      • setStretch

        public final void setStretch(int value)

        Stretch mode on Document Page.

        Specified by:
        setStretch in interface IRectangle
      • setTop

        public void setTop(int value)

        Top Y Position of Signature on Document Page in Measure values (pixels, percents or millimeters see MeasureType LocationMeasureType). (works if vertical alignment is not specified).

        Specified by:
        setTop in interface IRectangle
      • setTransparency

        public final void setTransparency(double value)

        Gets or sets the signature transparency (value from 0.0 (opaque) through 1.0 (clear)). Default value is 0 (opaque).

        Specified by:
        setTransparency in interface ITransparency
      • setVerticalAlignment

        public final void setVerticalAlignment(int value)

        Vertical alignment of signature on document page.

        Specified by:
        setVerticalAlignment in interface IAlignment
      • setWidth

        public final void setWidth(int value)

        Width of Signature on Document Page in Measure values (pixels, percents or millimeters MeasureType SizeMeasureType).

        Specified by:
        setWidth in interface IRectangle