Supprimer un élément de liste

Supprimer un élément d’un champ de liste

  1. Liez le PDF source à la façade FormEditor.

  2. Appelez delListItem(...) pour le champ cible et l’élément à supprimer.

  3. Enregistrez le document mis à jour.

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();
    }
}