필드 이름 바꾸기
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();
}
}