# Creating a PDF Document with an Empty Signature Field Using RadPdfProcessing

## Environment

| Version    | Product          | Author                                                                          |
| ---------- | ---------------- | ------------------------------------------------------------------------------- |
| 2025.1.205 | RadPdfProcessing | [Desislava Yordanova](https://www.telerik.com/blogs/author/desislava-yordanova) |

## Description

This article shows how to create a PDF document with an empty signature field that allows signing the document in any PDF viewer. The document contains only the empty signature field, and when opened in a viewer, it provides the option to sign.

![UnSigned PDF](https://www.telerik.com/document-processing-libraries/documentation/assets/4c1e7219bfcdeb6a03088d3f18b9283f/unsigned-pdf.png)

## Solution

To create a PDF document with an empty [signature field](https://www.telerik.com/document-processing-libraries/documentation/libraries/radpdfprocessing/model/interactive-forms/form-fields/signaturefield) using [RadPdfProcessing](https://www.telerik.com/document-processing-libraries/documentation/libraries/radpdfprocessing/overview), follow these steps:

1. Create a new PDF document and add a page.
2. Define the rectangle area for the [signature field](https://www.telerik.com/document-processing-libraries/documentation/libraries/radpdfprocessing/model/interactive-forms/form-fields/signaturefield).
3. Create a signature field with a unique name.
4. Add a [widget](https://www.telerik.com/document-processing-libraries/documentation/libraries/radpdfprocessing/model/annotations/widgets) to the signature field and set its size and position.
5. Add the widget to the page's annotations.
6. Save the document to a file.

Here is the complete code snippet:

```csharp
// Create a new PDF document and a page
RadFixedDocument document = new RadFixedDocument();
RadFixedPage page = document.Pages.AddPage();

// Define the rectangle for the signature field
Rect signatureRect = new Rect(50, 700, 200, 50);

// Create the signature field (do not assign a certificate or signature)
SignatureField signatureField = document.AcroForm.FormFields.AddSignature("SignatureFieldUniqueName");

// Add a widget for the signature field and set its position and size
SignatureWidget signatureWidget = signatureField.Widgets.AddWidget();
signatureWidget.Rect = signatureRect;

// Add the widget to the page's annotations
page.Annotations.Add(signatureWidget);

// Save the document
string filePath = "EmptySignatureWidget.pdf";
File.Delete(filePath);
using (var output = new System.IO.FileStream(filePath, System.IO.FileMode.Create, System.IO.FileAccess.Write))
{
    new PdfFormatProvider().Export(document, output, TimeSpan.FromSeconds(10));
}

// Open the PDF
Process.Start(new ProcessStartInfo() { FileName = filePath, UseShellExecute = true });
```

### Notes

* The code creates an empty signature field without assigning a certificate or signature.
* The resulting PDF can be opened in any PDF viewer that supports signing. The user can then sign the document.

## See Also

* [Digital Signature](https://www.telerik.com/document-processing-libraries/documentation/libraries/radpdfprocessing/features/digital-signature/overview)
* [Signature Field](https://www.telerik.com/document-processing-libraries/documentation/libraries/radpdfprocessing/model/interactive-forms/form-fields/signaturefield)
* [Signing an Unsigned PDF Document that Contains a Signature Field with RadPdfProcessing](https://www.telerik.com/document-processing-libraries/documentation/knowledge-base/pdfprocessing-sign-an-unsigned-pdf)
