Remove Field Action

Remove a field action

  1. Bind the source PDF to the FormEditor facade.
  2. Call removeFieldAction(...) for the target field.
  3. Save the updated document.
public static void removeFieldAction(Path inputFile, Path outputFile) {
    FormEditor editor = new FormEditor();
    try {
        editor.bindPdf(inputFile.toString());
        editor.removeFieldAction("Script_Demo_Button");
        editor.save(outputFile.toString());
    } finally {
        editor.close();
    }
}