Rename Field
Contents
[
Hide
]
Rename a field
- Bind the source PDF to the
FormEditorfacade. - Call
renameField(...)with the current field name and the new field name. - Save the updated document.
public static void renameField(Path inputFile, Path outputFile) {
FormEditor editor = new FormEditor();
try {
editor.bindPdf(inputFile.toString());
editor.renameField("City", "Town");
editor.save(outputFile.toString());
} finally {
editor.close();
}
}