# SignatureDocument.Document Property

> Gets or sets the signed document bytes as Base64.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Namespace:** `TXTextControl.Web.MVC.DocumentViewer.Models`
- **Package:** `TXTextControl.Web.DocumentViewer` (assembly `TXTextControl.Web.MVC.DocumentViewer.dll`, from nuget.org, the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.Web.DocumentViewer.Classic` (assembly `TXTextControl.Web.MVC.DocumentViewer.dll`, from nuget.org)
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.Web.MVC.DocumentViewer.Models > SignatureDocument.Document Property
- **437 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc-documentviewer-models/signaturedocument/document-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc-documentviewer-models/signaturedocument/document-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc-documentviewer-models/signaturedocument/document-property/llms-full.txt

---

### Description

Gets or sets the signed document bytes as Base64.

### Syntax

```csharp
public string Document { get; set; }
```

```vbnet
Public Property Document As String
```

### Examples

The following example configures `SignatureDocument.Document` and checks the resulting web document component setting before it is used.

```csharp
signatureDocument.Document = "Quarterly report";
if (!string.IsNullOrWhiteSpace(signatureDocument.Document))
{
    Console.WriteLine($"Document: {signatureDocument.Document}");
}
```

```vbnet
signatureDocument.Document = "Quarterly report"
If Not String.IsNullOrWhiteSpace(signatureDocument.Document) Then
    Console.WriteLine($"Document: {signatureDocument.Document}")
End If
```

### Comments

Native signing produces TX Text Control Internal Unicode Format, even when the source document has another format. A completion service may replace these bytes; this contract does not carry a format or MIME type.

---

## Nearby

- **Previous:** [SignatureDocument Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc-documentviewer-models/signaturedocument/constructor/llms-full.txt)
- **Next:** [SignatureDocument.NumPages Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc-documentviewer-models/signaturedocument/numpages-property/llms-full.txt)
