# SaveSettings.DigitalSignature Property

> Specifies a DigitalSignature object, which defines an X.509 certificate. This certificate can be used to digitally sign a PDF or a PDF/A file. For other formats this property has no meaning.

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

---

### Description

Specifies a [DigitalSignature](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/digitalsignature/llms-full.txt) object, which defines an X.509 certificate. This certificate can be used to digitally sign a PDF or a PDF/A file. For other formats this property has no meaning.

### Syntax

```csharp
public DigitalSignature DigitalSignature { get; set; }
```

```vbnet
Public Property DigitalSignature As DigitalSignature
```

### Examples

The following example signs the complete PDF with an X.509 certificate supplied by the application's secure certificate-loading code.

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

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

---

## Nearby

- **Previous:** [SaveSettings.DialogSettings Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/savesettings/dialogsettings-enumeration/llms-full.txt)
- **Next:** [SaveSettings.DocumentAccessPermissions Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/savesettings/documentaccesspermissions-property/llms-full.txt)
