フィールドのコンブ番号の設定
Contents
[
Hide
]
フィールドのコンブ番号の設定
- ソース PDF を
FormEditorファサードにバインドしてください。 setFieldCombNumber(...)を呼び出して、対象フィールドとコンブ値を設定してください。- 更新されたドキュメントを保存してください。
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();
}
}