من سطر واحد إلى متعدد

تحويل حقل من سطر واحد إلى عدة أسطر

  1. اربط ملف PDF المصدر إلى واجهة FormEditor.
  2. استدعِ single2Multiple(...) لاسم الحقل الهدف.
  3. احفظ المستند المحدث.
public static void singleToMultiple(Path inputFile, Path outputFile) {
    FormEditor editor = new FormEditor();
    try {
        editor.bindPdf(inputFile.toString());
        editor.single2Multiple("City");
        editor.save(outputFile.toString());
    } finally {
        editor.close();
    }
}