FormEditorAddField Method (FieldType, String, Int32, Single, Single, Single, Single)
Add field of specified type to the form.

Namespace: Aspose.Pdf.Facades
Assembly: Aspose.PDF (in Aspose.PDF.dll) Version: 19.11
Syntax
public bool AddField(
	FieldType fieldType,
	string fieldName,
	int pageNum,
	float llx,
	float lly,
	float urx,
	float ury
)

Parameters

fieldType
Type: Aspose.Pdf.FacadesFieldType
Type of the field which must be added.
fieldName
Type: SystemString
Name of the field whic must be added.
pageNum
Type: SystemInt32
Page number where new field must be placed.
llx
Type: SystemSingle
Abscissa of the lower-left corner of the field.
lly
Type: SystemSingle
Ordinate of the lower-left corner of the field.
urx
Type: SystemSingle
Abscissa of the upper-right corner of the field.
ury
Type: SystemSingle
Ordinate of the upper-right corner of the field.

Return Value

Type: Boolean
true if field was successfully added.
Examples
C#
FormEditor formEditor = new Aspose.Pdf.Facades.FormEditor("PdfForm.pdf", "FormEditor_AddField_Text.pdf");
formEditor.AddField(FieldType.Text, "AddedTextField",  1, 10, 30, 110, 46);
formEditor.Save();
See Also