Delete List Item
Contents
[
Hide
]
Delete an item from a list field
- Bind the source PDF to the
FormEditorfacade. - Call
delListItem(...)for the target field and item to remove. - Save the updated document.
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();
}
}