Class SignatureField
A digital signature form field. Create it with AddSignature(). Call Sign(Signer) to attach a signer so the document will be signed on next save.
Inherited Members
Namespace: DRIT.Pdf.Forms
Assembly: DRIT.Pdf.dll
Syntax
public sealed class SignatureField
Properties
Appearance
Appearance options for the visible widget.
Declaration
public SignatureAppearance Appearance { get; }
Property Value
| Type | Description |
|---|---|
| SignatureAppearance |
LockedFields
Locked field workflow settings written with this signature.
Declaration
public SignatureLockedFieldOptions LockedFields { get; }
Property Value
| Type | Description |
|---|---|
| SignatureLockedFieldOptions |
Name
PDF field name (written to /T). Default is "Signature".
Declaration
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Page
Page on which the visible widget is rendered, or null for invisible.
Declaration
public Page? Page { get; }
Property Value
| Type | Description |
|---|---|
| Page |
Rect
Widget bounding box in default user space units.
Declaration
public PdfRect Rect { get; }
Property Value
| Type | Description |
|---|---|
| PdfRect |
Value
Current signature value. For loaded signed documents this contains parsed signature metadata.
Assign null to clear an existing signature.
Declaration
public Signature? Value { get; set; }
Property Value
| Type | Description |
|---|---|
| Signature |
Methods
SetLockedFields(params FormField[])
Locks the specified form fields when this signature is applied.
Declaration
public void SetLockedFields(params FormField[] fields)
Parameters
| Type | Name | Description |
|---|---|---|
| FormField[] | fields |
Sign(Signer)
Attaches signer so that when the document is next saved
a digital signature is computed and embedded.
Declaration
public void Sign(Signer signer)
Parameters
| Type | Name | Description |
|---|---|---|
| Signer | signer |
Timestamp(Timestamper)
Initiates timestamp-only signing using a timestamper abstraction.
Declaration
public void Timestamp(Timestamper timestamper)
Parameters
| Type | Name | Description |
|---|---|---|
| Timestamper | timestamper |