# SaveSettings.SignatureFields Property

> Specifies an array of DigitalSignature objects, each of which defines an X.509 certificate and is associated with a SignatureField in the document. These certificates can be used to digitally sign a PDF or a PDF/A file. For other formats this property has no meaning. To associate a certificate with a signature field a name must be specified for the field.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 31.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Path:** TX Text Control .NET Server > Reference > TXTextControl > SaveSettings.SignatureFields Property
- **727 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/savesettings/signaturefields-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/savesettings/signaturefields-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/savesettings/signaturefields-property/llms-full.txt

---

### Description

Specifies an array of [DigitalSignature](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/digitalsignature/llms-full.txt) objects, each of which defines an X.509 certificate and is associated with a [SignatureField](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/signaturefield/llms-full.txt) in the document. These certificates can be used to digitally sign a PDF or a PDF/A file. For other formats this property has no meaning. To associate a certificate with a signature field a name must be specified for the field.

### Syntax

```csharp
public DigitalSignature[] SignatureFields { get; set; }
```

```vbnet
Public Property SignatureFields As DigitalSignature()
```

### Examples

The following example signs a named PDF signature field with an X.509 certificate supplied by secure certificate-loading code.

```csharp
SignatureField approval = new(new System.Drawing.Size(3000, 1000), "ApproverSignature", 10);
textControl.SignatureFields.Add(approval, FrameInsertionMode.AsCharacter);

DigitalSignature fieldSignature = new(certificate, null, "ApproverSignature");
SaveSettings saveSettings = new()
{
    SignatureFields = new[] { fieldSignature }
};
textControl.Save("signed-approval.pdf", StreamType.AdobePDF, saveSettings);
```

```vbnet
Dim approval As New SignatureField(New System.Drawing.Size(3000, 1000), "ApproverSignature", 10)
textControl.SignatureFields.Add(approval, FrameInsertionMode.AsCharacter)

Dim fieldSignature As New DigitalSignature(certificate, Nothing, "ApproverSignature")
Dim saveSettings As New SaveSettings() With {
    .SignatureFields = New DigitalSignature() { fieldSignature }
}
textControl.Save("signed-approval.pdf", StreamType.AdobePDF, saveSettings)
```

---

## Nearby

- **Previous:** [SaveSettings.SavedStreamType Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/savesettings/savedstreamtype-property/llms-full.txt)
- **Next:** [SaveSettings.UserDefinedDocumentProperties Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/savesettings/userdefineddocumentproperties-property/llms-full.txt)
