Forums Register Login

How to fill pdf form in jsp

+Pie Number of slices to send: Send
Hi guys I have created a pdf form with attribute names as web form , now what I want is to fill this form according to values entered by user (jsp form)
also I would save it some where in a directory so later I want to call and view it for print , how could I do that guys ???

I really don't know how to fill the pdf form according to values I have ???

please help
thaaaaaaaaaaaanks in advance
+Pie Number of slices to send: Send
The iText library can be used to fill in AcroForms.
+Pie Number of slices to send: Send
 

Lester Burnham wrote:The iText library can be used to fill in AcroForms.



could you please give me some simple code to do that , I really searched about iText and don't know how to use it to fill the form

I really apperciate your help
thanks for reply
+Pie Number of slices to send: Send
Try a little bit harder. A search for "acroform itext" brings up many relevant results, including tutorials.
+Pie Number of slices to send: Send
 

Lester Burnham wrote:Try a little bit harder. A search for "acroform itext" brings up many relevant results, including tutorials.



thanks dear for reply , I got tutorials in how to write into pdf form , but the thing I am now thinking is how do I write into input fields , not to create new pdf and write what want
that is not my aim , you know dear , it is like filling to web form but in pdf.

what I do in web form , is to create servlet that is read inputs from web form using request.getParameter and fill the form again using request.getAttribute("") to proper field

how could I do that in pdf form exactly treating with pdf fields
+Pie Number of slices to send: Send
Yes, filling in forms in existing PDFs is what many of those tutorials will teach you.

Or go directly to http://pdfbox.apache.org/userguide/cookbook.html where the relevant class for one particular PDF library are mentioned.
What does a metric clock look like? I bet it is nothing like this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 2668 times.
Similar Threads
JSP Page to PDF File
how to submit PDF object to servlet
redirect but textfields value should not empty
Is there any Java API to append to a PDF
how to submit PDF object to servlet
how to call a struts action when a checkbox is checked ?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 08:34:50.