Set Submit URL
Contents
[
Hide
]
Set a submit URL
- Bind the source PDF to the
FormEditorfacade. - Call
setSubmitUrl(...)for the button field. - Apply the submit flag for the submission format.
- Save the updated document.
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();
}
}