public class ImageSignOptions extends SignOptions implements IRectangle, IAlignment, IRotation, ITransparency, com.aspose.ms.System.IDisposable
Represents the Image signature options.
Constructor and Description |
---|
ImageSignOptions()
Initializes a new instance of the ImageSignOptions class with default values.
|
ImageSignOptions(InputStream imageStream)
Initializes a new instance of the ImageSignOptions class with image stream.
|
ImageSignOptions(String imageFilePath)
Initializes a new instance of the ImageSignOptions class with image file.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Clears internal resources
|
static ImageSignOptions |
fromBase64(String base64Content)
Creates a new instance of the ImageSignOptions class with predefined Image from Base64.
|
boolean |
getAllPages()
Put signature on all document pages.
|
Border |
getBorder()
Specify border settings
|
int |
getHeight()
Height of Signature on Document Page in Measure values
(pixels, percents or millimeters see
MeasureType SizeMeasureType). |
int |
getHorizontalAlignment()
Horizontal alignment of signature on document page.
|
String |
getImageFilePath()
Gets or sets the signature image file path.
|
InputStream |
getImageStream()
Gets or sets the signature image stream.
|
int |
getLeft()
Left X position of Signature on Document Page in Measure values
(pixels, percents or millimeters see
MeasureType LocationMeasureType). |
int |
getLocationMeasureType()
Measure type (pixels, percents or millimeters) for Left and Top properties.
|
Padding |
getMargin()
Gets or sets the space between Sign and Document edges.
|
int |
getMarginMeasureType()
Gets or sets the measure type (pixels, percents or millimeters) for Margin.
|
Rectangle |
getRectangle()
Rectangle of area to put the image on document.
|
int |
getRotationAngle()
Rotation angle of signature on document page (clockwise).
|
int |
getSizeMeasureType()
Measure type (pixels, percents or millimeters) for Width and Height properties.
|
int |
getStretch()
Stretch mode on Document Page.
|
int |
getTop()
Top Y Position of Signature on Document Page in Measure values
(pixels, percents or millimeters see
MeasureType LocationMeasureType). |
double |
getTransparency()
Gets or sets the signature transparency (value from 0.0 (opaque) through 1.0 (clear)).
|
int |
getVerticalAlignment()
Vertical alignment of signature on document page.
|
int |
getWidth()
Width of Signature on Document Page in Measure values
(pixels, percents or millimeters
MeasureType SizeMeasureType). |
void |
setAllPages(boolean value)
Put signature on all document pages.
|
void |
setBorder(Border value)
Specify border settings
|
void |
setHeight(int value)
Height of Signature on Document Page in Measure values
(pixels, percents or millimeters see
MeasureType SizeMeasureType). |
void |
setHorizontalAlignment(int value)
Horizontal alignment of signature on document page.
|
void |
setImageFilePath(String value)
Gets or sets the signature image file path.
|
void |
setImageStream(InputStream value)
Gets or sets the signature image stream.
|
void |
setLeft(int value)
Left X position of Signature on Document Page in Measure values
(pixels, percents or millimeters see
MeasureType LocationMeasureType). |
void |
setLocationMeasureType(int value)
Measure type (pixels, percents or millimeters) for Left and Top properties.
|
void |
setMargin(Padding value)
Gets or sets the space between Sign and Document edges.
|
void |
setMarginMeasureType(int value)
Gets or sets the measure type (pixels, percents or millimeters) for Margin.
|
void |
setRotationAngle(int value)
Rotation angle of signature on document page (clockwise).
|
void |
setSizeMeasureType(int value)
Measure type (pixels, percents or millimeters) for Width and Height properties.
|
void |
setStretch(int value)
Stretch mode on Document Page.
|
void |
setTop(int value)
Top Y Position of Signature on Document Page in Measure values
(pixels, percents or millimeters see
MeasureType LocationMeasureType). |
void |
setTransparency(double value)
Gets or sets the signature transparency (value from 0.0 (opaque) through 1.0 (clear)).
|
void |
setVerticalAlignment(int value)
Vertical alignment of signature on document page.
|
void |
setWidth(int value)
Width of Signature on Document Page in Measure values
(pixels, percents or millimeters
MeasureType SizeMeasureType). |
String |
toString()
Override string conversion.
|
addSignature, getAppearance, getDocumentType, getExtensions, getPageNumber, getPagesSetup, getSignatureType, getZOrder, setAppearance, setDocumentType, setExtensions, setPageNumber, setPagesSetup, setZOrder
public ImageSignOptions()
Initializes a new instance of the ImageSignOptions class with default values.
public ImageSignOptions(InputStream imageStream)
Initializes a new instance of the ImageSignOptions class with image stream.
imageStream
- Image streampublic ImageSignOptions(String imageFilePath)
Initializes a new instance of the ImageSignOptions class with image file.
imageFilePath
- Image file pathpublic final void dispose()
Clears internal resources
dispose
in interface com.aspose.ms.System.IDisposable
public static ImageSignOptions fromBase64(String base64Content)
Creates a new instance of the ImageSignOptions class with predefined Image from Base64.
base64Content
- Image content in Base64 string formatpublic boolean getAllPages()
Put signature on all document pages. This property can only be used for multi-frames image formats (Tiff).
getAllPages
in class SignOptions
public final Border getBorder()
Specify border settings
public final int getHeight()
Height of Signature on Document Page in Measure values
(pixels, percents or millimeters see MeasureType
SizeMeasureType).
getHeight
in interface IRectangle
public final int getHorizontalAlignment()
Horizontal alignment of signature on document page.
getHorizontalAlignment
in interface IAlignment
public final String getImageFilePath()
Gets or sets the signature image file path. This property is used only if ImageStream is not specified.
public final InputStream getImageStream()
Gets or sets the signature image stream. If this property is specified it is always used instead ImageGuid.
getImageStream
in class SignOptions
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).
getLeft
in interface IRectangle
public int getLocationMeasureType()
Measure type (pixels, percents or millimeters) for Left and Top properties.
getLocationMeasureType
in interface IRectangle
public Padding getMargin()
Gets or sets the space between Sign and Document edges. (works ONLY if horizontal or vertical alignment are specified).
getMargin
in interface IAlignment
public int getMarginMeasureType()
Gets or sets the measure type (pixels, percents or millimeters) for Margin.
getMarginMeasureType
in interface IAlignment
public final Rectangle getRectangle()
Rectangle of area to put the image on document.
public final int getRotationAngle()
Rotation angle of signature on document page (clockwise).
getRotationAngle
in interface IRotation
public int getSizeMeasureType()
Measure type (pixels, percents or millimeters) for Width and Height properties.
getSizeMeasureType
in interface IRectangle
public final int getStretch()
Stretch mode on Document Page.
getStretch
in interface IRectangle
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).
getTop
in interface IRectangle
public final double getTransparency()
Gets or sets the signature transparency (value from 0.0 (opaque) through 1.0 (clear)). Default value is 0 (opaque).
getTransparency
in interface ITransparency
public final int getVerticalAlignment()
Vertical alignment of signature on document page.
getVerticalAlignment
in interface IAlignment
public final int getWidth()
Width of Signature on Document Page in Measure values
(pixels, percents or millimeters MeasureType
SizeMeasureType).
getWidth
in interface IRectangle
public void setAllPages(boolean value)
Put signature on all document pages. This property can only be used for multi-frames image formats (Tiff).
setAllPages
in class SignOptions
public final void setBorder(Border value)
Specify border settings
public final void setHeight(int value)
Height of Signature on Document Page in Measure values
(pixels, percents or millimeters see MeasureType
SizeMeasureType).
setHeight
in interface IRectangle
public final void setHorizontalAlignment(int value)
Horizontal alignment of signature on document page.
setHorizontalAlignment
in interface IAlignment
public final void setImageFilePath(String value)
Gets or sets the signature image file path. This property is used only if ImageStream is not specified.
public final void setImageStream(InputStream value)
Gets or sets the signature image stream. If this property is specified it is always used instead ImageGuid.
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).
setLeft
in interface IRectangle
public void setLocationMeasureType(int value)
Measure type (pixels, percents or millimeters) for Left and Top properties.
setLocationMeasureType
in interface IRectangle
public void setMargin(Padding value)
Gets or sets the space between Sign and Document edges. (works ONLY if horizontal or vertical alignment are specified).
setMargin
in interface IAlignment
public void setMarginMeasureType(int value)
Gets or sets the measure type (pixels, percents or millimeters) for Margin.
setMarginMeasureType
in interface IAlignment
public final void setRotationAngle(int value)
Rotation angle of signature on document page (clockwise).
setRotationAngle
in interface IRotation
public void setSizeMeasureType(int value)
Measure type (pixels, percents or millimeters) for Width and Height properties.
setSizeMeasureType
in interface IRectangle
public final void setStretch(int value)
Stretch mode on Document Page.
setStretch
in interface IRectangle
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).
setTop
in interface IRectangle
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).
setTransparency
in interface ITransparency
public final void setVerticalAlignment(int value)
Vertical alignment of signature on document page.
setVerticalAlignment
in interface IAlignment
public final void setWidth(int value)
Width of Signature on Document Page in Measure values
(pixels, percents or millimeters MeasureType
SizeMeasureType).
setWidth
in interface IRectangle
public String toString()
Override string conversion.
toString
in class SignOptions