Set Field Comb Number

Set a field comb number

  1. Bind the source PDF to the FormEditor facade.
  2. Call setFieldCombNumber(...) for the target field and comb value.
  3. Save the updated document.
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();
    }
}