送信ボタンの作成
Contents
[
Hide
]
フォームデータを送信するボタンを作成するには、FormEditorExamples.createSubmitButton(...) を使用してください。
送信ボタンの作成
- ソース PDF を
FormEditorファサードにバインドしてください。 addSubmitBtn(...)を、ボタン名、ページ、ラベル、対象 URL、および矩形を引数として呼び出してください。- 更新されたドキュメントを保存してください。
public static void createSubmitButton(Path inputFile, Path outputFile) {
FormEditor editor = new FormEditor();
try {
editor.bindPdf(inputFile.toString());
editor.addSubmitBtn("submitbutton", 1, "Submit", "http://localhost/testing/show", 100, 450, 150, 475);
editor.save(outputFile.toString());
} finally {
editor.close();
}
}