添加列表项
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();
}
}