제출 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();
}
}