RenameField

Form.RenameField method

Renames a field. Either AcroForm field or XFA field is OK.

public void RenameField(string fieldName, string newFieldName)
Parameter Type Description
fieldName String the old field name
newFieldName String the new field name

Examples

Form form = new Form("PdfForm.pdf", "PdfFormUpdated.pdf");
form.RenameField("field", "field1");
form.Save();

See Also