Form.RenameField

Form.RenameField method

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

public void RenameField(string fieldName, string newFieldName)
ParameterTypeDescription
fieldNameStringthe old field name
newFieldNameStringthe new field name

Examples

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

See Also