Renommer le champ
Contents
[
Hide
]
Renommer un champ
-
Liez le PDF source à la façade
FormEditor. -
Appelez
renameField(...)avec le nom du champ actuel et le nouveau nom du champ. -
Enregistrez le document mis à jour.
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();
}
}