.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

PdfFormData.GetFieldNames() Method

Returns the child field names for a particular tree node.

Namespace: DevExpress.Pdf

Assembly: DevExpress.Pdf.v21.1.Core.dll


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:

// 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;
See Also