SignatureCustomAppearance

Inheritance: java.lang.Object, com.aspose.pdf.SignatureCustomAppearance

public final class SignatureCustomAppearance extends Object

An abstract class which represents signature custon appearance object.

Constructors

ConstructorDescription
SignatureCustomAppearanceInititalizes new instance of the {@link SignatureCustomAppearance} class.

Methods

MethodDescription
getBackgroundColorGets/sets background color. Default value: Transparent.
getContactInfoLabelGets/sets contact info label. Default value: “Contact”.
getCultureGets/sets culture info value. Default value: InvariantCulture.
getDateSignedAtLabelGets/sets date signed label. Default value: “Date”.
getDateTimeFormatGets/sets datetime format. Default value: “yyyy.MM.dd HH:mm:ss”.
getDateTimeLocalFormatGets/sets datetime local format. Default value: “yyyy.MM.dd HH:mm:ss zzz”.
getDigitalSignedLabelGets/sets digital signed label. Default value: “Digitally signed by”.
getDigitalSubjectFormatGets/sets format for order of elements in Subject string. Result examples: C=UK, CN=Org, O=Organization or CN=Org, C=UK, O=Organization or O=Organization
getFontFamilyNameGets/sets font family name. It should be existed in the document. Default value: Arial.
getFontSizeGets/sets font size. Default value: 10.
getForegroundColorGets/sets foreground color (color of text). Default value: Blue.
getLocationLabelGets/sets location label. Default value: “Location”.
getReasonLabelGets/sets reason label. Default value: “Reason”.
getRotationGets or sets signature rotation.
isForegroundImageGets or sets a value indicating whether the image in the signature appearance is drawn as a foreground image. Default value: false.
isShowContactInfoGets/sets contact info visibility. Default value: true.
isShowLocationGets/sets location visibility. Default value: true.
isShowReasonGets/sets reason visibility. Default value: true.
isUseDigitalSubjectFormatGets/sets the usage state of the {@code DigitalSubjectFormat}({@link #getDigitalSubjectFormat}/{@link #setDigitalSubjectFormat(int[])}).
setBackgroundColorGets/sets background color. Default value: Transparent.
setContactInfoLabelGets/sets contact info label. Default value: “Contact”.
setCultureGets/sets culture info value.
setDateSignedAtLabelGets/sets date signed label. Default value: “Date”.
setDateTimeFormatGets/sets datetime format. Default value: “yyyy.MM.dd HH:mm:ss”.
setDateTimeLocalFormatGets/sets datetime local format. Default value: “yyyy.MM.dd HH:mm:ss zzz”.
setDigitalSignedLabelGets/sets digital signed label. Default value: “Digitally signed by”.
setDigitalSubjectFormatGets/sets format for order of elements in Subject string. Result examples: C=UK, CN=Org, O=Organization or CN=Org, C=UK, O=Organization or O=Organization
setFontFamilyNameGets/sets font family name. It should be existed in the document. Default value: Arial.
setFontSizeGets/sets font size. Default value: 10.
setForegroundColorGets/sets foreground color (color of text). Default value: Blue.
setForegroundImageGets or sets a value indicating whether the image in the signature appearance is drawn as a foreground image. Default value: false.
setLocationLabelGets/sets location label. Default value: “Location”.
setReasonLabelGets/sets reason label. Default value: “Reason”.
setRotationGets or sets signature rotation.
setShowContactInfoGets/sets contact info visibility. Default value: true.
setShowLocationGets/sets location visibility. Default value: true.
setShowReasonGets/sets reason visibility. Default value: true.
setUseDigitalSubjectFormatGets/sets the usage state of the {@code DigitalSubjectFormat}({@link #getDigitalSubjectFormat}/{@link #setDigitalSubjectFormat(int[])}).

SignatureCustomAppearance

public SignatureCustomAppearance()

Inititalizes new instance of the {@link SignatureCustomAppearance} class.

getBackgroundColor

public final Color getBackgroundColor()

Gets/sets background color. Default value: Transparent.

Returns: com.aspose.pdf.Color instance

getContactInfoLabel

public final String getContactInfoLabel()

Gets/sets contact info label. Default value: “Contact”.

Returns: String value

getCulture

public final Locale getCulture()

Gets/sets culture info value. Default value: InvariantCulture.

Returns: Locale value

getDateSignedAtLabel

public final String getDateSignedAtLabel()

Gets/sets date signed label. Default value: “Date”.

Returns: String value

getDateTimeFormat

public final String getDateTimeFormat()

Gets/sets datetime format. Default value: “yyyy.MM.dd HH:mm:ss”.

Returns: String value

getDateTimeLocalFormat

public final String getDateTimeLocalFormat()

Gets/sets datetime local format. Default value: “yyyy.MM.dd HH:mm:ss zzz”.

Returns: String value

getDigitalSignedLabel

public final String getDigitalSignedLabel()

Gets/sets digital signed label. Default value: “Digitally signed by”.

Returns: String value

getDigitalSubjectFormat

public final int[] getDigitalSubjectFormat()

Gets/sets format for order of elements in Subject string. Result examples: C=UK, CN=Org, O=Organization or CN=Org, C=UK, O=Organization or O=Organization

Returns: array of int @see SubjectNameElements

getFontFamilyName

public final String getFontFamilyName()

Gets/sets font family name. It should be existed in the document. Default value: Arial.

Returns: String value

getFontSize

public final double getFontSize()

Gets/sets font size. Default value: 10.

Returns: double value

getForegroundColor

public final Color getForegroundColor()

Gets/sets foreground color (color of text). Default value: Blue.

Returns: com.aspose.pdf.Color instance

getLocationLabel

public final String getLocationLabel()

Gets/sets location label. Default value: “Location”.

Returns: String value

getReasonLabel

public final String getReasonLabel()

Gets/sets reason label. Default value: “Reason”.

Returns: String value

getRotation

public final Rotation getRotation()

Gets or sets signature rotation.

Returns: Rotation element

isForegroundImage

public final boolean isForegroundImage()

Gets or sets a value indicating whether the image in the signature appearance is drawn as a foreground image. Default value: false.

Returns: boolean value

isShowContactInfo

public final boolean isShowContactInfo()

Gets/sets contact info visibility. Default value: true.

Returns: boolean value

isShowLocation

public final boolean isShowLocation()

Gets/sets location visibility. Default value: true.

Returns: boolean value

isShowReason

public final boolean isShowReason()

Gets/sets reason visibility. Default value: true.

Returns: boolean value

isUseDigitalSubjectFormat

public final boolean isUseDigitalSubjectFormat()

Gets/sets the usage state of the {@code DigitalSubjectFormat}({@link #getDigitalSubjectFormat}/{@link #setDigitalSubjectFormat(int[])}).

Returns: boolean value

setBackgroundColor

Gets/sets background color. Default value: Transparent.

setContactInfoLabel

Gets/sets contact info label. Default value: “Contact”.

setCulture

Gets/sets culture info value.

setDateSignedAtLabel

Gets/sets date signed label. Default value: “Date”.

setDateTimeFormat

Gets/sets datetime format. Default value: “yyyy.MM.dd HH:mm:ss”.

setDateTimeLocalFormat

Gets/sets datetime local format. Default value: “yyyy.MM.dd HH:mm:ss zzz”.

setDigitalSignedLabel

Gets/sets digital signed label. Default value: “Digitally signed by”.

setDigitalSubjectFormat

public final void setDigitalSubjectFormat(int[] value)

Gets/sets format for order of elements in Subject string. Result examples: C=UK, CN=Org, O=Organization or CN=Org, C=UK, O=Organization or O=Organization

Parameters:

ParameterTypeDescription
valuearray of int @see SubjectNameElements

setFontFamilyName

Gets/sets font family name. It should be existed in the document. Default value: Arial.

setFontSize

public final void setFontSize(double value)

Gets/sets font size. Default value: 10.

Parameters:

ParameterTypeDescription
valuedouble value

setForegroundColor

Gets/sets foreground color (color of text). Default value: Blue.

setForegroundImage

public final void setForegroundImage(boolean value)

Gets or sets a value indicating whether the image in the signature appearance is drawn as a foreground image. Default value: false.

Parameters:

ParameterTypeDescription
valueboolean value

setLocationLabel

Gets/sets location label. Default value: “Location”.

setReasonLabel

Gets/sets reason label. Default value: “Reason”.

setRotation

Gets or sets signature rotation.

setShowContactInfo

public final void setShowContactInfo(boolean value)

Gets/sets contact info visibility. Default value: true.

Parameters:

ParameterTypeDescription
valueboolean value

setShowLocation

public final void setShowLocation(boolean value)

Gets/sets location visibility. Default value: true.

Parameters:

ParameterTypeDescription
valueboolean value

setShowReason

public final void setShowReason(boolean value)

Gets/sets reason visibility. Default value: true.

Parameters:

ParameterTypeDescription
valueboolean value

setUseDigitalSubjectFormat

public final void setUseDigitalSubjectFormat(boolean value)

Gets/sets the usage state of the {@code DigitalSubjectFormat}({@link #getDigitalSubjectFormat}/{@link #setDigitalSubjectFormat(int[])}).

Parameters:

ParameterTypeDescription
valueboolean value