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.
|
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 |
getShapePosition()
Defines where shape should be presented in the document layout
|
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 |
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 |
setShapePosition(int value)
Defines where shape should be presented in the document layout
|
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, getAllPages, getAppearance, getDocumentType, getExtensions, getPageNumber, getPagesSetup, getSignatureType, getZOrder, setAllPages, setAppearance, setDocumentType, setExtensions, setPageNumber, setPagesSetup, setZOrderpublic 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.IDisposablepublic 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 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 IRectanglepublic final int getHorizontalAlignment()
Horizontal alignment of signature on document page.
getHorizontalAlignment in interface IAlignmentpublic 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 SignOptionspublic 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 IRectanglepublic int getLocationMeasureType()
Measure type (pixels, percents or millimeters) for Left and Top properties.
getLocationMeasureType in interface IRectanglepublic Padding getMargin()
Gets or sets the space between Sign and Document edges. (works ONLY if horizontal or vertical alignment are specified).
getMargin in interface IAlignmentpublic int getMarginMeasureType()
Gets or sets the measure type (pixels, percents or millimeters) for Margin.
getMarginMeasureType in interface IAlignmentpublic 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 IRotationpublic final int getShapePosition()
Defines where shape should be presented in the document layout
public int getSizeMeasureType()
Measure type (pixels, percents or millimeters) for Width and Height properties.
getSizeMeasureType in interface IRectanglepublic final int getStretch()
Stretch mode on Document Page.
getStretch in interface IRectanglepublic 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 IRectanglepublic 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 ITransparencypublic final int getVerticalAlignment()
Vertical alignment of signature on document page.
getVerticalAlignment in interface IAlignmentpublic final int getWidth()
Width of Signature on Document Page in Measure values
(pixels, percents or millimeters MeasureType SizeMeasureType).
getWidth in interface IRectanglepublic 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 IRectanglepublic final void setHorizontalAlignment(int value)
Horizontal alignment of signature on document page.
setHorizontalAlignment in interface IAlignmentpublic 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 IRectanglepublic void setLocationMeasureType(int value)
Measure type (pixels, percents or millimeters) for Left and Top properties.
setLocationMeasureType in interface IRectanglepublic 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 IAlignmentpublic void setMarginMeasureType(int value)
Gets or sets the measure type (pixels, percents or millimeters) for Margin.
setMarginMeasureType in interface IAlignmentpublic final void setRotationAngle(int value)
Rotation angle of signature on document page (clockwise).
setRotationAngle in interface IRotationpublic final void setShapePosition(int value)
Defines where shape should be presented in the document layout
public void setSizeMeasureType(int value)
Measure type (pixels, percents or millimeters) for Width and Height properties.
setSizeMeasureType in interface IRectanglepublic final void setStretch(int value)
Stretch mode on Document Page.
setStretch in interface IRectanglepublic 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 IRectanglepublic 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 ITransparencypublic final void setVerticalAlignment(int value)
Vertical alignment of signature on document page.
setVerticalAlignment in interface IAlignmentpublic final void setWidth(int value)
Width of Signature on Document Page in Measure values
(pixels, percents or millimeters MeasureType SizeMeasureType).
setWidth in interface IRectanglepublic String toString()
Override string conversion.
toString in class SignOptionsCopyright © 2024. All rights reserved.