Dear Jack, when submitting PDF there are several options you have. The one you are looking for is submitting the data as HTML data.
You'll find details in https://opensource.adobe.com/dc-acrobat-sdk-docs/acrobatsdk/pdfs/acrobatsdk_jsapiref.pdf Look for the submitForm method. That gives you all the details for the action you have to set for the submit button. Setting the action accordingly will get you the data at the web server similar to an HTML form submission. For complex forms you might be better of with XML data or other options. BR Maruan Am Freitag, dem 15.10.2021 um 00:17 -0400 schrieb Light Speed: > 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 > > > > -- -- Maruan Sahyoun FileAffairs GmbH Josef-Schappe-Straße 21 40882 Ratingen Tel: +49 (2102) 89497 88 Fax: +49 (2102) 89497 91 sahy...@fileaffairs.de www.fileaffairs.de Geschäftsführer: Maruan Sahyoun Handelsregister: AG Düsseldorf, HRB 53837 UST.-ID: DE248275827 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org For additional commands, e-mail: users-h...@pdfbox.apache.org