Menghapus Field

Menghapus bidang

  1. Ikat PDF sumber ke fasad FormEditor.
  2. Panggil removeField(...) untuk nama bidang target.
  3. Simpan dokumen yang diperbarui.
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();
    }
}