목록 항목 추가
Contents
[
Hide
]
목록 필드에 항목 추가
- 소스 PDF를
FormEditor파사드에 바인딩하세요. - 대상 필드와 새 표시/값 쌍에 대해
addListItem(...)를 호출하세요. - 업데이트된 문서를 저장하세요.
public static void addListItem(Path inputFile, Path outputFile) {
FormEditor editor = new FormEditor();
try {
editor.bindPdf(inputFile.toString());
editor.addListItem("Country", new String[] {"New Zealand", "New Zealand"});
editor.save(outputFile.toString());
} finally {
editor.close();
}
}