حذف عنصر من القائمة

حذف عنصر من حقل القائمة

  1. اربط ملف PDF المصدر إلى واجهة FormEditor.
  2. استدعِ delListItem(...) للحقل الهدف والعنصر للإزالة.
  3. احفظ المستند المحدث.
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();
    }
}