Class PdfForm
PdfForm class represents a collection of the user-editable form fields within a PDD document.
Inheritance
System.Object
PdfForm
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: IronPdf.Forms
Assembly: IronPdf.dll
Syntax
public class PdfForm
Constructors
PdfForm(FormField[])
Creates instance of PdfForm with list of fields specified by formFields
.
Declaration
public PdfForm(FormField[] formFields)
Parameters
Type | Name | Description |
---|---|---|
FormField[] | formFields | The list of fields. |
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 |