---
title: "Extract signature field properties from PDF in C# .NET | Nutrient .NET SDK"
canonical_url: "https://www.nutrient.io/guides/dotnet/signatures/signature-field/get-signature-field-properties/"
md_url: "https://www.nutrient.io/guides/dotnet/signatures/signature-field/get-signature-field-properties.md"
last_updated: "2026-05-21T17:12:02.219Z"
description: "Learn to retrieve signature field properties such as ID, name, font, and color using Nutrient .NET SDK (formerly GdPicture.NET) for enhanced PDF form management."
---

# Get signature field properties in C#

Nutrient.NET SDK (formerly GdPicture.NET) enables you to get the properties of different form field types, including the signature form field. The most commonly used properties are the following:

- [Field ID](#getting-the-signature-field-id)

- [Field name](#getting-the-signature-field-name)

- [Font name](#getting-the-signature-field-font-name)

- [Font size](#getting-the-signature-field-font-size)

- [Font color](#getting-the-signature-field-font-color)

## Getting the signature field ID

To get the signature field ID, follow the steps below:

1. Load the source document with a signature field by passing its path to the [`LoadFromFile` method](https://www.nutrient.io/api/gdpicture/GdPicture.NET.14.API~GdPicture14.GdPicturePDF~LoadFromFile.html) of the [`GdPicturePDF` object](https://www.nutrient.io/api/gdpicture/GdPicture.NET.14.API~GdPicture14.GdPicturePDF.html).

2. Get the total number of signature fields with the [`GetSignatureCount` method](https://www.nutrient.io/api/gdpicture/GdPicture.NET.14.API~GdPicture14.GdPicturePDF~GetSignatureCount.html).

3. Loop through all form fields:
   - Get the current field ID with the [`GetFormFieldId` method](https://www.nutrient.io/api/gdpicture/GdPicture.NET.14.API~GdPicture14.GdPicturePDF~GetFormFieldId.html). It requires the index number of the current form field.
   - Get the current field type with the [`GetFormFieldType` method](https://www.nutrient.io/api/gdpicture/GdPicture.NET.14.API~GdPicture14.GdPicturePDF~GetFormFieldType.html).
   - Add a condition that checks if the current form field is a signature type. Use the `PdfFormFieldTypeSignature` member of the [`PdfFromFieldType` enumeration](https://www.nutrient.io/api/gdpicture/GdPicture.NET.14.API~GdPicture14.PdfFormFieldType.html).

If you have only one form field in a PDF document, skip the loop and use the [`GetFormFieldId` method](https://www.nutrient.io/api/gdpicture/GdPicture.NET.14.API~GdPicture14.GdPicturePDF~GetFormFieldId.html) with `0` as its parameter to get the signature field ID:

### C#

```csharp

using GdPicturePDF gdPicturePDF = new GdPicturePDF();
gdPicturePDF.LoadFromFile(@"C:\temp\output.pdf");
int signatureFieldID;
// Get the total number of form fields.
int formCount = gdPicturePDF.GetFormFieldsCount();
for (int i = 0; i <= formCount - 1; i++)
{
    // Get the current form field ID.
    int fieldID = gdPicturePDF.GetFormFieldId(i);
    // Get the current form field type.
    var fieldType = gdPicturePDF.GetFormFieldType(fieldID);
    // Check if the current form field is a signature field.
    if (fieldType == PdfFormFieldType.PdfFormFieldTypeSignature)
    {
        // Save the current form field ID as the signature field ID.
        signatureFieldID = fieldID;
    }
}

```

### VB.NET

```vb

Using gdPicturePDF As GdPicturePDF = New GdPicturePDF()
    gdPicturePDF.LoadFromFile("C:\temp\output.pdf")
    Dim signatureFieldID As Integer
    ' Get the total number of form fields.
    Dim formCount As Integer = gdPicturePDF.GetFormFieldsCount()
    For i = 0 To formCount - 1
        ' Get the current form field ID.
        Dim fieldID As Integer = gdPicturePDF.GetFormFieldId(i)
        ' Get the current form field type.
        Dim fieldType = gdPicturePDF.GetFormFieldType(fieldID)
        ' Check if the current form field is a signature field.
        If fieldType Is PdfFormFieldType.PdfFormFieldTypeSignature Then
            ' Save the current form field ID as the signature field ID.
            signatureFieldID = fieldID
        End If
    Next
End Using

```

#### Used methods

- [`GetFormFieldId`](https://www.nutrient.io/api/gdpicture/GdPicture.NET.14.API~GdPicture14.GdPicturePDF~GetFormFieldId.html)

- [`GetFormFieldsCount`](/api/gdpicture/GdPicture.NET.14.API~GdPicture14.GdPicturePDF~GetFormFieldsCount.html)

- [`GetFormFieldType`](https://www.nutrient.io/api/gdpicture/GdPicture.NET.14.API~GdPicture14.GdPicturePDF~GetFormFieldType.html)

- [`LoadFromFile`](https://www.nutrient.io/api/gdpicture/GdPicture.NET.14.API~GdPicture14.GdPicturePDF~LoadFromFile.html)

#### Related topics

- [Load a file](/guides/dotnet/load-a-file.md)

## Getting the signature field name

To get the signature field name, follow the steps below:

1. Load the source document with a signature field by passing its path to the [`LoadFromFile` method](https://www.nutrient.io/api/gdpicture/GdPicture.NET.14.API~GdPicture14.GdPicturePDF~LoadFromFile.html) of the [`GdPicturePDF` object](https://www.nutrient.io/api/gdpicture/GdPicture.NET.14.API~GdPicture14.GdPicturePDF.html).

2. Get the total number of signature fields with the [`GetSignatureCount` method](https://www.nutrient.io/api/gdpicture/GdPicture.NET.14.API~GdPicture14.GdPicturePDF~GetSignatureCount.html).

3. Loop through all form fields:
   - Get the current field ID with the [`GetFormFieldId` method](https://www.nutrient.io/api/gdpicture/GdPicture.NET.14.API~GdPicture14.GdPicturePDF~GetFormFieldId.html). It requires the index number of the current form field.
   - Get the current field type with the [`GetFormFieldType` method](https://www.nutrient.io/api/gdpicture/GdPicture.NET.14.API~GdPicture14.GdPicturePDF~GetFormFieldType.html).
   - Add a condition that checks if the current form field is a signature type. Use the `PdfFormFieldTypeSignature` member of the [`PdfFromFieldType` enumeration](https://www.nutrient.io/api/gdpicture/GdPicture.NET.14.API~GdPicture14.PdfFormFieldType.html).

4. If the condition is met, use the [`GetFormFieldTitle` method](https://www.nutrient.io/api/gdpicture/GdPicture.NET.14.API~GdPicture14.GdPicturePDF~GetFormFieldTitle.html) with the current form field ID as its parameter to get the signature field name.

If you have only one form field in a PDF document, skip the loop and use the [`GetFormFieldId` method](https://www.nutrient.io/api/gdpicture/GdPicture.NET.14.API~GdPicture14.GdPicturePDF~GetFormFieldId.html) with `0` as its parameter to get the signature field ID:

### C#

```csharp

using GdPicturePDF gdPicturePDF = new GdPicturePDF();
gdPicturePDF.LoadFromFile(@"C:\temp\output.pdf");
// Get the total number of form fields.
int formCount = gdPicturePDF.GetFormFieldsCount();
for (int i = 0; i <= formCount - 1; i++)
{
    // Get the current form field ID.
    int fieldID = gdPicturePDF.GetFormFieldId(i);
    // Get the current form field type.
    var fieldType = gdPicturePDF.GetFormFieldType(fieldID);
    // Check if the current form field is a signature field.
    if (fieldType == PdfFormFieldType.PdfFormFieldTypeSignature)
    {
        // Get the form field name.
        Console.WriteLine(gdPicturePDF.GetFormFieldTitle(fieldID));
    }
}

```

### VB.NET

```vb

Using gdPicturePDF As GdPicturePDF = New GdPicturePDF()
    gdPicturePDF.LoadFromFile("C:\temp\output.pdf")
    ' Get the total number of form fields.
    Dim formCount As Integer = gdPicturePDF.GetFormFieldsCount()

    For i = 0 To formCount - 1
        ' Get the current form field ID.
        Dim fieldID As Integer = gdPicturePDF.GetFormFieldId(i)
        ' Get the current form field type.
        Dim fieldType = gdPicturePDF.GetFormFieldType(fieldID)
        ' Check if the current form field is a signature field.
        If fieldType Is PdfFormFieldType.PdfFormFieldTypeSignature Then
            ' Get the form field name.
            Console.WriteLine(gdPicturePDF.GetFormFieldTitle(fieldID))
        End If
    Next
End Using

```

#### Used methods

- [`GetFormFieldId`](https://www.nutrient.io/api/gdpicture/GdPicture.NET.14.API~GdPicture14.GdPicturePDF~GetFormFieldId.html)

- [`GetFormFieldsCount`](/api/gdpicture/GdPicture.NET.14.API~GdPicture14.GdPicturePDF~GetFormFieldsCount.html)

- [`GetFormFieldTitle`](https://www.nutrient.io/api/gdpicture/GdPicture.NET.14.API~GdPicture14.GdPicturePDF~GetFormFieldTitle.html)

- [`GetFormFieldType`](https://www.nutrient.io/api/gdpicture/GdPicture.NET.14.API~GdPicture14.GdPicturePDF~GetFormFieldType.html)

- [`LoadFromFile`](https://www.nutrient.io/api/gdpicture/GdPicture.NET.14.API~GdPicture14.GdPicturePDF~LoadFromFile.html)

#### Related topics

- [Load a file](/guides/dotnet/load-a-file.md)

## Getting the signature field font name

To get the font name used in a signature field, use the [`GetFromFieldFontName` method](https://www.nutrient.io/api/gdpicture/GdPicture.NET.14.API~GdPicture14.GdPicturePDF~GetFormFieldFontName.html). This method requires the signature field ID as its parameter. Refer to the [Getting the Signature Field ID](#getting-the-signature-field-id) section for more information.

## Getting the signature field font size

To get the font size used in a signature field, use the [`GetFormFieldFontSize` method](https://www.nutrient.io/api/gdpicture/GdPicture.NET.14.API~GdPicture14.GdPicturePDF~GetFormFieldFontSize.html). This method requires the signature field ID as its parameter. Refer to the [Getting the Signature Field ID](#getting-the-signature-field-id) section for more information.

## Getting the signature field font color

To get the font color used in a signature field, use the [`GetFormFieldFontColor` method](https://www.nutrient.io/api/gdpicture/GdPicture.NET.14.API~GdPicture14.GdPicturePDF~GetFormFieldFontColor.html). This method requires the signature field ID as its parameter. Refer to the [Getting the Signature Field ID](#getting-the-signature-field-id) section for more information.
---

## Related pages

- [Remove a signature field from a PDF in C#](/guides/dotnet/signatures/signature-field/remove-signature-field.md)
- [Fill and sign PDFs in C# .NET](/guides/dotnet/signatures/signature-field/fill-a-signature-field.md)
- [Add a signature field to a PDF in C#](/guides/dotnet/signatures/signature-field/add-a-signature-field.md)

