送信 URL の設定
Contents
[
Hide
]
送信 URL の設定
- ソース PDF を
FormEditorファサードにバインドしてください。 - ボタン フィールドに対して
setSubmitUrl(...)を呼び出してください。 - 送信形式のために送信フラグを適用してください。
- 更新されたドキュメントを保存してください。
public static void setSubmitUrl(Path inputFile, Path outputFile) {
FormEditor editor = new FormEditor();
try {
editor.bindPdf(inputFile.toString());
editor.setSubmitUrl("Script_Demo_Button", "http://www.example.com/submit");
editor.setSubmitFlag("Script_Demo_Button", SubmitFormFlag.Xfdf);
editor.save(outputFile.toString());
} finally {
editor.close();
}
}