リスト項目の追加
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();
}
}