تعيين رقم الكمب للحقل

تعيين رقم الكمب لحقل

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