Java - Generating An .PDF File Using Data From Text Fields On Form - Stack Overflow
Java - Generating An .PDF File Using Data From Text Fields On Form - Stack Overflow
Modifier la police
Sans sérif Sérif
5
Écouter (N)
I have no idea how to pull this one off. The problem is this, i will try to be as accurate as possible.
I have a form on which there are several text fields (there are also a
combo box and 2 radio button groups, but let's focus on text fields) and two buttons on the bottom of the page - Save (into the db, which i
know how to do) and Print form. My task is to create the pdf file (when Print is clicked) using the data that user inputed in text fields. Also,
the printed pdf file should not look like bunch of random crap thrown
around, but with some predefined style (with labels and tables where the
data from fields will go).
Can someone give me a hint or a suggestion how to do this? I found that most people are reccomending iText library, but again, i don't know
how to use it.
And let me point out that this is offline project, so no servlet is used, if that helps in any way. Thanks a lot in advance!