Initializes a new instance of the SignTextOptions class with default values.
TextSignOptions(String text)
public TextSignOptions(String text)
Initializes a new instance of the SignTextOptions class with text.
Parameters:
Parameter
Type
Description
text
java.lang.String
Signature text.
DEFAULT_TRANSPARENCY
public static final double DEFAULT_TRANSPARENCY
getLeft()
public final int getLeft()
Left X position of Signature on Document Page in Measure values
(pixels, percents or millimeters see MeasureType LocationMeasureType property).
(works if horizontal alignment is not specified).
Returns:
int
setLeft(int value)
public final void setLeft(int value)
Left X position of Signature on Document Page in Measure values
(pixels, percents or millimeters see MeasureType LocationMeasureType property).
(works if horizontal alignment is not specified).
Parameters:
Parameter
Type
Description
value
int
getTop()
public final int getTop()
Top Y Position of Signature on Document Page in Measure values
(pixels, percents or millimeters see MeasureType LocationMeasureType property).
(works if vertical alignment is not specified).
Returns:
int
setTop(int value)
public final void setTop(int value)
Top Y Position of Signature on Document Page in Measure values
(pixels, percents or millimeters see MeasureType LocationMeasureType property).
(works if vertical alignment is not specified).
Parameters:
Parameter
Type
Description
value
int
getWidth()
public final int getWidth()
Width of Signature on Document Page in Measure values
(pixels, percents or millimeters see MeasureType SizeMeasureType property).
Returns:
int
setWidth(int value)
public final void setWidth(int value)
Width of Signature on Document Page in Measure values
(pixels, percents or millimeters see MeasureType SizeMeasureType property).
Parameters:
Parameter
Type
Description
value
int
getHeight()
public final int getHeight()
Height of Signature on Document Page in Measure values
(pixels, percents or millimeters see MeasureType SizeMeasureType property).
Returns:
int
setHeight(int value)
public final void setHeight(int value)
Height of Signature on Document Page in Measure values
(pixels, percents or millimeters see MeasureType SizeMeasureType property).
Parameters:
Parameter
Type
Description
value
int
getLocationMeasureType()
public int getLocationMeasureType()
Measure type (pixels, percents or millimeters) for Left and Top properties.
Returns:
int
setLocationMeasureType(int value)
public void setLocationMeasureType(int value)
Measure type (pixels, percents or millimeters) for Left and Top properties.
Parameters:
Parameter
Type
Description
value
int
getSizeMeasureType()
public int getSizeMeasureType()
Measure type (pixels, percents or millimeters) for Width and Height properties.
Returns:
int
setSizeMeasureType(int value)
public void setSizeMeasureType(int value)
Measure type (pixels, percents or millimeters) for Width and Height properties.
Parameters:
Parameter
Type
Description
value
int
getStretch()
public final int getStretch()
Stretch mode on Document Page.
Returns:
int
setStretch(int value)
public final void setStretch(int value)
Stretch mode on Document Page.
Parameters:
Parameter
Type
Description
value
int
getRotationAngle()
public final int getRotationAngle()
Rotation angle of signature on document page (clockwise).
Returns:
int
setRotationAngle(int value)
public final void setRotationAngle(int value)
Rotation angle of signature on document page (clockwise).
Parameters:
Parameter
Type
Description
value
int
getHorizontalAlignment()
public final int getHorizontalAlignment()
Horizontal alignment of signature on document page.
Returns:
int
setHorizontalAlignment(int value)
public final void setHorizontalAlignment(int value)
Horizontal alignment of signature on document page.
Parameters:
Parameter
Type
Description
value
int
getVerticalAlignment()
public final int getVerticalAlignment()
Vertical alignment of signature on document page.
Returns:
int
setVerticalAlignment(int value)
public final void setVerticalAlignment(int value)
Vertical alignment of signature on document page.
Parameters:
Parameter
Type
Description
value
int
getMargin()
public Padding getMargin()
Gets or sets the space between Sign and Document edges.
(works ONLY if horizontal or vertical alignment are specified).
Gets or sets the type of text signature implementation.
Returns:
int
setSignatureImplementation(int value)
public final void setSignatureImplementation(int value)
Gets or sets the type of text signature implementation.
Parameters:
Parameter
Type
Description
value
int
getTextHorizontalAlignment()
public final int getTextHorizontalAlignment()
Horizontal alignment of text inside a signature.
This feature is supported only for Image and Annotation signature implementations
(see TextSignatureImplementation SignatureImplementation property).
Returns:
int
setTextHorizontalAlignment(int value)
public final void setTextHorizontalAlignment(int value)
Horizontal alignment of text inside a signature.
This feature is supported only for Image and Annotation signature implementations
(see TextSignatureImplementation SignatureImplementation property).
Parameters:
Parameter
Type
Description
value
int
getTextVerticalAlignment()
public final int getTextVerticalAlignment()
Vertical alignment of text inside a signature.
This feature is supported only for Image signature implementation
(see TextSignatureImplementation SignatureImplementation property).
Returns:
int
setTextVerticalAlignment(int value)
public final void setTextVerticalAlignment(int value)
Vertical alignment of text inside a signature.
This feature is supported only for Image signature implementation
(see TextSignatureImplementation SignatureImplementation property).
Parameters:
Parameter
Type
Description
value
int
getFormTextFieldTitle()
public final String getFormTextFieldTitle()
Gets or sets the title of text form field to put text signature into it.
This property could be used only with SignatureImplementation = TextToFormField.
Returns:
java.lang.String
setFormTextFieldTitle(String value)
public final void setFormTextFieldTitle(String value)
Gets or sets the title of text form field to put text signature into it.
This property could be used only with SignatureImplementation = TextToFormField.
Parameters:
Parameter
Type
Description
value
java.lang.String
getFormTextFieldType()
public final int getFormTextFieldType()
Gets or sets the type of form field to put text signature into it.
This property could be used only with SignatureImplementation = TextToFormField.
Value by default is AllTextTypes.
Returns:
int
setFormTextFieldType(int value)
public final void setFormTextFieldType(int value)
Gets or sets the type of form field to put text signature into it.
This property could be used only with SignatureImplementation = TextToFormField.
Value by default is AllTextTypes.
Parameters:
Parameter
Type
Description
value
int
getShapeType()
public final int getShapeType()
Gets or sets the type of shape to put text.
This property could be used only with SignatureImplementation = TextStamp.
Value by default is Rectangle.
Returns:
int
setShapeType(int value)
public final void setShapeType(int value)
Gets or sets the type of shape to put text.
This property could be used only with SignatureImplementation = TextStamp.
Value by default is Rectangle.
Parameters:
Parameter
Type
Description
value
int
getSignatureID()
public final int getSignatureID()
Gets or sets the unique ID of signature. It can be used in signature verification options. Property is supported for Pdf documents only
Returns:
int
setSignatureID(int value)
public final void setSignatureID(int value)
Gets or sets the unique ID of signature. It can be used in signature verification options. Property is supported for Pdf documents only
Gets or sets the native attribute. If it is set document specific signatures could be used.
Native text watermark for WordProcessing documents is different than regular, for example.
Returns:
boolean
setNative(boolean value)
public final void setNative(boolean value)
Gets or sets the native attribute. If it is set document specific signatures could be used.
Native text watermark for WordProcessing documents is different than regular, for example.
Parameters:
Parameter
Type
Description
value
boolean
getShapePosition()
public final int getShapePosition()
Defines where shape should be presented in the document layout
Returns:
int
setShapePosition(int value)
public final void setShapePosition(int value)
Defines where shape should be presented in the document layout
Parameters:
Parameter
Type
Description
value
int
validate()
public void validate()
Internal method to validate the options parameters.
toString()
public String toString()
Override string conversion.
Returns:
java.lang.String -
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.