Class PdfForm
PdfForm class represents a collection of the user-editable form fields within a PDD document.
Inheritance
System.Object
PdfForm
Namespace: IronPdf.Forms
Assembly: IronPdf.dll
Syntax
public class PdfForm : Object
Fields
Fields
The editable fields within this PDF.
Declaration
public readonly FormField[] Fields
Field Value
Type | Description |
---|---|
FormField[] |
See Also
Properties
FieldNames
Returns the field name of every editable data field in the PDF.
Declaration
public string[] FieldNames { get; }
Property Value
Type | Description |
---|---|
System.String[] | The field names as an array of strings. |
Methods
GetFieldByName(String)
Returns a FormField by its name. This method is fault tolerant and will attempt to match case mistakes and partial field names.
Declaration
public FormField GetFieldByName(string FieldName)
Parameters
Type | Name | Description |
---|---|---|
System.String | FieldName | The name of the field to be edited. This is analogous to the HTML input 'name' attribute when creating a PDF with forms from HTML using IronPDF. |
Returns
Type | Description |
---|---|
FormField | A FormField object |
RenameField(String, String)
Rename a FormField
Declaration
public void RenameField(string CurrentFieldName, string NewFieldName)
Parameters
Type | Name | Description |
---|---|---|
System.String | CurrentFieldName | Current field name |
System.String | NewFieldName | New field name |