送信ボタンの作成

フォームデータを送信するボタンを作成するには、FormEditorExamples.createSubmitButton(...) を使用してください。

送信ボタンの作成

  1. ソース PDF を FormEditor ファサードにバインドしてください。
  2. addSubmitBtn(...) を、ボタン名、ページ、ラベル、対象 URL、および矩形を引数として呼び出してください。
  3. 更新されたドキュメントを保存してください。
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();
    }
}