Table of Contents

Class SignatureFieldAppearance

Namespace
iText.Forms.Form.Element
Assembly
itext.forms.dll

Extension of the FormField<T> class representing a signature field in PDF.

public class SignatureFieldAppearance : FormField<SignatureFieldAppearance>, IFormField, IBlockElement, IAbstractElement, IElement, IPropertyContainer, IAccessibleElement
Inheritance
SignatureFieldAppearance
Implements
Inherited Members

Constructors

SignatureFieldAppearance(string)

Creates a new SignatureFieldAppearance instance.

public SignatureFieldAppearance(string id)

Parameters

id string

the id.

Methods

GetAccessibilityProperties()

public override AccessibilityProperties GetAccessibilityProperties()

Returns

AccessibilityProperties

GetContentElements()

Gets the final content for this signature.

public virtual IList<IElement> GetContentElements()

Returns

IList<IElement>

collection of the layout elements which will be rendered as a signature content.

GetId()

public override string GetId()

Returns

string

GetSignedAppearanceText()

Gets the SignedAppearanceText instance for this signature.

public virtual SignedAppearanceText GetSignedAppearanceText()

Returns

SignedAppearanceText

SignedAppearanceText instance if it was set by SetContent(SignedAppearanceText) , null otherwise.

MakeNewRenderer()

protected override IRenderer MakeNewRenderer()

Returns

IRenderer

SetContent(string)

Sets the content for this signature.

public virtual SignatureFieldAppearance SetContent(string description)

Parameters

description string

the signature text identifying the signer.

Returns

SignatureFieldAppearance

this same SignatureFieldAppearance instance.

SetContent(string, string)

Sets the content for this signature.

public virtual SignatureFieldAppearance SetContent(string signerName, string description)

Parameters

signerName string

the name of the signer from the certificate.

description string

the signature text identifying the signer.

Returns

SignatureFieldAppearance

this same SignatureFieldAppearance instance.

SetContent(string, SignedAppearanceText)

Sets the content for this signature.

public virtual SignatureFieldAppearance SetContent(string signerName, SignedAppearanceText description)

Parameters

signerName string

the name of the signer from the certificate.

description SignedAppearanceText

SignedAppearanceText instance representing the signature text identifying the signer.

Returns

SignatureFieldAppearance

this same SignatureFieldAppearance instance.

SetContent(string, ImageData)

Sets the content for this signature.

public virtual SignatureFieldAppearance SetContent(string description, ImageData image)

Parameters

description string

the signature text identifying the signer.

image ImageData

the Image object to render.

Returns

SignatureFieldAppearance

this same SignatureFieldAppearance instance.

SetContent(SignedAppearanceText)

Sets the content for this signature.

public virtual SignatureFieldAppearance SetContent(SignedAppearanceText description)

Parameters

description SignedAppearanceText

SignedAppearanceText instance representing the signature text identifying the signer.

Returns

SignatureFieldAppearance

this same SignatureFieldAppearance instance.

SetContent(SignedAppearanceText, ImageData)

Sets the content for this signature.

public virtual SignatureFieldAppearance SetContent(SignedAppearanceText description, ImageData image)

Parameters

description SignedAppearanceText

SignedAppearanceText instance representing the signature text identifying the signer.

image ImageData

the Image object to render.

Returns

SignatureFieldAppearance

this same SignatureFieldAppearance instance.

SetContent(ImageData)

Sets the content for this signature.

public virtual SignatureFieldAppearance SetContent(ImageData image)

Parameters

image ImageData

the Image object to render.

Returns

SignatureFieldAppearance

this same SignatureFieldAppearance instance.

SetContent(Div)

Sets the content for this signature.

public virtual SignatureFieldAppearance SetContent(Div data)

Parameters

data Div

the custom signature data which will be rendered.

Returns

SignatureFieldAppearance

this same SignatureFieldAppearance instance.

SetSignerName(string)

Replaces the signer name for this signature if it was set by SetContent(SignedAppearanceText).

public virtual void SetSignerName(string signerName)

Parameters

signerName string

signer name to set.