제출 버튼 생성
Contents
[
Hide
]
양식 데이터를 제출하는 버튼을 만들려면 FormEditorExamples.createSubmitButton(...)를 사용하세요.
제출 버튼 만들기
- 소스 PDF를
FormEditor파사드에 바인딩하세요. - 버튼 이름, 페이지, 라벨, 대상 URL 및 직사각형을 사용하여
addSubmitBtn(...)를 호출하세요. - 업데이트된 문서를 저장하세요.
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();
}
}