フィールド名の変更
Contents
[
Hide
]
フィールドの名前の変更
- ソース PDF を
FormEditorファサードにバインドしてください。 renameField(...)を現在のフィールド名と新しいフィールド名で呼び出してください。- 更新されたドキュメントを保存してください。
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();
}
}