フィールドのコンブ番号の設定

フィールドのコンブ番号の設定

  1. ソース PDF を FormEditor ファサードにバインドしてください。
  2. setFieldCombNumber(...) を呼び出して、対象フィールドとコンブ値を設定してください。
  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();
    }
}