public abstract class SignImageOptions extends SignOptions implements IRectangle, IAlignment, IRotation, IOpacity
Represents the Image Signature Options.
| Constructor and Description |
|---|
SignImageOptions()
Initializes a new instance of the SignImageOptions class with default values.
|
SignImageOptions(InputStream imageStream)
Initializes a new instance of the SignImageOptions class with image stream.
|
SignImageOptions(String imageGuid)
Initializes a new instance of the SignImageOptions class with image file.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getHeight()
Height of Signature on Document Page in Measure values (pixels or percent see
MeasureType SizeMeasureType). |
int |
getHorizontalAlignment()
Horizontal alignment of signature on document page.
|
String |
getImageGuid()
Gets or sets the signature image file name.
|
protected com.groupdocs.signature.domain.helpers.ImageHelper |
getImageHelper() |
InputStream |
getImageStream()
Gets or sets the signature image stream.
|
int |
getLeft()
Left X position of Signature on Document Page in Measure values (pixels or percent see
MeasureType LocationMeasureType). |
int |
getLocationMeasureType()
Measure type (pixels or percent) 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 or percent) for Margin.
|
double |
getOpacity()
Gets or sets the additional opacity for sign image (value from 0.0 (clear) through 1.0 (opaque)).
|
Rectangle |
getRectangle()
Rectangle of area to put the image on document.
|
int |
getRotationAngle()
Rotation angle of signature on document page (clockwise).
|
boolean |
getSignAllPages()
Put signature on all document pages.
|
int |
getSizeMeasureType()
Measure type (pixels or percent) 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 or percent see
MeasureType LocationMeasureType). |
int |
getVerticalAlignment()
Vertical alignment of signature on document page.
|
int |
getWidth()
Width of Signature on Document Page in Measure values (pixels or percent see
MeasureType SizeMeasureType). |
void |
setHeight(int value)
Height of Signature on Document Page in Measure values (pixels or percent see
MeasureType SizeMeasureType). |
void |
setHorizontalAlignment(int value)
Horizontal alignment of signature on document page.
|
void |
setImageGuid(String value)
Gets or sets the signature image file name.
|
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 or percent see
MeasureType LocationMeasureType). |
void |
setLocationMeasureType(int value)
Measure type (pixels or percent) 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 or percent) for Margin.
|
void |
setOpacity(double value)
Gets or sets the additional opacity for sign image (value from 0.0 (clear) through 1.0 (opaque)).
|
void |
setRotationAngle(int value)
Rotation angle of signature on document page (clockwise).
|
void |
setSignAllPages(boolean value)
Put signature on all document pages.
|
void |
setSizeMeasureType(int value)
Measure type (pixels or percent) 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 or percent see
MeasureType LocationMeasureType). |
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 or percent see
MeasureType SizeMeasureType). |
String |
toString()
Override string conversion.
|
getAppearance, getDocumentPageNumber, getExtensions, getPagesSetup, release, setAppearance, setDocumentPageNumber, setPagesSetup, validatepublic SignImageOptions()
Initializes a new instance of the SignImageOptions class with default values.
public SignImageOptions(InputStream imageStream)
Initializes a new instance of the SignImageOptions class with image stream.
imageStream - Image streampublic SignImageOptions(String imageGuid)
Initializes a new instance of the SignImageOptions class with image file.
imageGuid - Image file GUIDpublic int getHeight()
Height of Signature on Document Page in Measure values (pixels or percent see MeasureType SizeMeasureType).
getHeight in interface IRectanglepublic int getHorizontalAlignment()
Horizontal alignment of signature on document page.
getHorizontalAlignment in interface IAlignmentpublic String getImageGuid()
Gets or sets the signature image file name. This property is used only if ImageStream is not specified.
protected com.groupdocs.signature.domain.helpers.ImageHelper getImageHelper()
public InputStream getImageStream()
Gets or sets the signature image stream. If this property is specified it is always used instead ImageGuid.
public int getLeft()
Left X position of Signature on Document Page in Measure values (pixels or percent see MeasureType LocationMeasureType).
(works if horizontal alignment is not specified).
getLeft in interface IRectanglepublic int getLocationMeasureType()
Measure type (pixels or percent) 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 or percent) for Margin.
getMarginMeasureType in interface IAlignmentpublic double getOpacity()
Gets or sets the additional opacity for sign image (value from 0.0 (clear) through 1.0 (opaque)). By default the value is 1.0.
getOpacity in interface IOpacitypublic Rectangle getRectangle()
Rectangle of area to put the image on document.
public int getRotationAngle()
Rotation angle of signature on document page (clockwise).
getRotationAngle in interface IRotationpublic boolean getSignAllPages()
Put signature on all document pages.
public int getSizeMeasureType()
Measure type (pixels or percent) for Width and Height properties.
getSizeMeasureType in interface IRectanglepublic 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 or percent see MeasureType LocationMeasureType).
(works if vertical alignment is not specified).
getTop in interface IRectanglepublic int getVerticalAlignment()
Vertical alignment of signature on document page.
getVerticalAlignment in interface IAlignmentpublic int getWidth()
Width of Signature on Document Page in Measure values (pixels or percent see MeasureType SizeMeasureType).
getWidth in interface IRectanglepublic void setHeight(int value)
Height of Signature on Document Page in Measure values (pixels or percent see MeasureType SizeMeasureType).
setHeight in interface IRectanglepublic void setHorizontalAlignment(int value)
Horizontal alignment of signature on document page.
setHorizontalAlignment in interface IAlignmentpublic void setImageGuid(String value)
Gets or sets the signature image file name. This property is used only if ImageStream is not specified.
public 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 or percent see MeasureType LocationMeasureType).
(works if horizontal alignment is not specified).
setLeft in interface IRectanglepublic void setLocationMeasureType(int value)
Measure type (pixels or percent) 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 or percent) for Margin.
setMarginMeasureType in interface IAlignmentpublic void setOpacity(double value)
Gets or sets the additional opacity for sign image (value from 0.0 (clear) through 1.0 (opaque)). By default the value is 1.0.
setOpacity in interface IOpacitypublic void setRotationAngle(int value)
Rotation angle of signature on document page (clockwise).
setRotationAngle in interface IRotationpublic void setSignAllPages(boolean value)
Put signature on all document pages.
public void setSizeMeasureType(int value)
Measure type (pixels or percent) for Width and Height properties.
setSizeMeasureType in interface IRectanglepublic 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 or percent see MeasureType LocationMeasureType).
(works if vertical alignment is not specified).
setTop in interface IRectanglepublic void setVerticalAlignment(int value)
Vertical alignment of signature on document page.
setVerticalAlignment in interface IAlignmentpublic void setWidth(int value)
Width of Signature on Document Page in Measure values (pixels or percent see MeasureType SizeMeasureType).
setWidth in interface IRectanglepublic String toString()
Override string conversion.
toString in class SignOptionsCopyright © 2018. All rights reserved.