Удаление элемента списка
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();
}
}