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, isRotationChanged, setAppearance, setDocumentPageNumber, setPagesSetup, setRotationChanged
public 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 IRectangle
public int getHorizontalAlignment()
Horizontal alignment of signature on document page.
getHorizontalAlignment
in interface IAlignment
public 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 IRectangle
public int getLocationMeasureType()
Measure type (pixels or percent) 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 or percent) for Margin.
getMarginMeasureType
in interface IAlignment
public 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 IOpacity
public 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 IRotation
public boolean getSignAllPages()
Put signature on all document pages.
public int getSizeMeasureType()
Measure type (pixels or percent) for Width and Height properties.
getSizeMeasureType
in interface IRectangle
public 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 or percent see MeasureType
LocationMeasureType).
(works if vertical alignment is not specified).
getTop
in interface IRectangle
public int getVerticalAlignment()
Vertical alignment of signature on document page.
getVerticalAlignment
in interface IAlignment
public int getWidth()
Width of Signature on Document Page in Measure values (pixels or percent see MeasureType
SizeMeasureType).
getWidth
in interface IRectangle
public void setHeight(int value)
Height of Signature on Document Page in Measure values (pixels or percent see MeasureType
SizeMeasureType).
setHeight
in interface IRectangle
public void setHorizontalAlignment(int value)
Horizontal alignment of signature on document page.
setHorizontalAlignment
in interface IAlignment
public 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 IRectangle
public void setLocationMeasureType(int value)
Measure type (pixels or percent) 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 or percent) for Margin.
setMarginMeasureType
in interface IAlignment
public 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 IOpacity
public void setRotationAngle(int value)
Rotation angle of signature on document page (clockwise).
setRotationAngle
in interface IRotation
public 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 IRectangle
public 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 or percent see MeasureType
LocationMeasureType).
(works if vertical alignment is not specified).
setTop
in interface IRectangle
public void setVerticalAlignment(int value)
Vertical alignment of signature on document page.
setVerticalAlignment
in interface IAlignment
public void setWidth(int value)
Width of Signature on Document Page in Measure values (pixels or percent see MeasureType
SizeMeasureType).
setWidth
in interface IRectangle
public String toString()
Override string conversion.
toString
in class SignOptions
Copyright © 2018. All rights reserved.