Remove Field
Contents
[
Hide
]
Remove a field
- Bind the source PDF to the
FormEditorfacade. - Call
removeField(...)for the target field name. - Save the updated document.
public static void removeField(Path inputFile, Path outputFile) {
FormEditor editor = new FormEditor();
try {
editor.bindPdf(inputFile.toString());
editor.removeField("Country");
editor.save(outputFile.toString());
} finally {
editor.close();
}
}