PdfFormData.GetFieldNames() Method
In This Article
Returns the child field names for a particular tree node.
Namespace: DevExpress.Pdf
Assembly: DevExpress.Pdf.v24.2.Core.dll
NuGet Package: DevExpress.Pdf.Core
#Declaration
#Returns
Type | Description |
---|---|
IList<String> | A list of child field names for a particular tree node. |
#Example
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;
}
#Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GetFieldNames() method.
Note
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