Add List Item
Contents
[
Hide
]
Add an item to a list field
- Bind the source PDF to the
FormEditorfacade. - Call
addListItem(...)for the target field and new display/value pair. - Save the updated document.
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();
}
}