Thank you Tilman. I actually read that post and others but so far none of them answered my question. My question was not on how to create a button. My question was how to capture the values that the user filled in and submitted. This is AFTER the user clicks the button. In regular java web applications, I know how to submit a HTML form and process the incoming request object with users values, but in the case of submitting PDF forms, I just couldn't put my hands on it when submitting a pdf form, Any suggestions? Thank you again.
On Tue, Oct 12, 2021 at 2:08 AM Tilman Hausherr <thaush...@t-online.de> wrote: > There is a somewhat obscure way to do this with a push button: > > https://stackoverflow.com/questions/58611014/adding-a-button-with-the-submitform-function-with-pdfbox-in-java > > Try to work with that one, then share the code and the PDF if it doesn't > work; that person got it to work, except that the button wasn't > displayed properly. > > Tilman > > Am 12.10.2021 um 02:08 schrieb Light Speed: > > Hi > > > > I need some guidance from all your PDFBox users. I have been trying > different features like creating PDF and adding forms, etc. All seeemed to > be fine. My use case is as following, the final goal is to save the PDF > that customer has filled: > > > > 1. Create a Fillable PDF, with some text boxes, radio buttons, etc. Save > it as MyFormTemplate (This works) > > 2. Make it available via a web page (This works too.) > > 3. The plan is to create a submit button on the PDF form to submit the > filled form (the form will be filled by users). Once the server gets the > filled form, it will save the form as a new PDF file with a new name (say > JackForm01.pdf) (so that the original MyFormTemplate can be used over and > over again by others). > > > > My question is at #3, how do I capture the data that user fills? Or even > if I want to ask users to save it and then upload, I still need some > mechanism to capture the change. > > > > Many thanks folks! > > > > -Jack > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org > > For additional commands, e-mail: users-h...@pdfbox.apache.org > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org > For additional commands, e-mail: users-h...@pdfbox.apache.org > >