# DigitalSignature Class

> An instance of the DigitalSignature class represents an X.509 certificate which can be used to digitally sign a PDF or PDF/A document. The DigitalSignature class is used with the SaveSettings.DigitalSignature property.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Class
- **Introduced:** 17.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 > DigitalSignature Class
- **475 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/digitalsignature/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/digitalsignature/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/digitalsignature/llms-full.txt

---

### Description

An instance of the DigitalSignature class represents an X.509 certificate which can be used to digitally sign a PDF or PDF/A document. The DigitalSignature class is used with the [SaveSettings.DigitalSignature](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/savesettings/digitalsignature-property/llms-full.txt) property.

### Syntax

```csharp
public class DigitalSignature
```

```vbnet
Public Class DigitalSignature
```

### Examples

The following example creates a PDF signature from an X.509 certificate supplied by secure certificate-loading code.

```csharp
DigitalSignature digitalSignature = new(certificate, null);
SaveSettings saveSettings = new() { DigitalSignature = digitalSignature };
textControl.Save("signed-report.pdf", StreamType.AdobePDF, saveSettings);
```

```vbnet
Dim digitalSignature As New DigitalSignature(certificate, Nothing)
Dim saveSettings As New SaveSettings() With { .DigitalSignature = digitalSignature }
textControl.Save("signed-report.pdf", StreamType.AdobePDF, saveSettings)
```

---

## In This Section

- [DigitalSignature Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/digitalsignature/constructor/llms-full.txt): Initializes a new instance of the DigitalSignature class.

---

## Nearby

- **Previous:** [DateFormFieldEventArgs.DateFormField Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/dateformfieldeventargs/dateformfield-property/llms-full.txt)
- **Next:** [DigitalSignature Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/digitalsignature/constructor/llms-full.txt)
