删除列表项
Contents
[
Hide
]
从列表字段删除项目
- 将源 PDF 绑定到
FormEditor对象。 - 调用
delListItem(...)用于目标字段和要删除的项。 - 保存更新后的文档。
public static void deleteListItem(Path inputFile, Path outputFile) {
FormEditor editor = new FormEditor();
try {
editor.bindPdf(inputFile.toString());
editor.delListItem("Country", "UK");
editor.save(outputFile.toString());
} finally {
editor.close();
}
}