Skip to main content

PdfFormData.GetFieldNames() Method

Returns the child field names for a particular tree node.

Namespace: DevExpress.Pdf

Assembly: DevExpress.Pdf.v23.2.Core.dll

NuGet Package: DevExpress.Pdf.Core


public IList<string> GetFieldNames()


Type Description

A list of child field names for a particular tree node.


The following example demonstrates how to obtain a list of current fields in a PDF Form:

View Example

// Load a document with an interactive form.
using (PdfDocumentProcessor documentProcessor = new PdfDocumentProcessor()) {
    documentProcessor.LoadDocument(filePath + fileName + ".pdf");

    // Get names of interactive form fields.
    PdfFormData formData = documentProcessor.GetFormData();
    IList<string> names = formData.GetFieldNames();

    // Show the field names in the rich text box.
    string[] strings = new string[names.Count];
    names.CopyTo(strings, 0);
    richTextBox1.Lines = strings;

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GetFieldNames() method.


The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also