0% found this document useful (0 votes)
69 views1 page

Java - Generating An .PDF File Using Data From Text Fields On Form - Stack Overflow

This document discusses generating a PDF file from user-entered form data when a "Print" button is clicked. The form contains several text fields and other elements like radio buttons and a combo box. When printed, the PDF should have a predefined style with labels and tables to neatly display the inputted data, rather than looking like "random crap thrown around". The iText library is often recommended but the person does not know how to use it. The project is offline without servlets. Advice is sought on how to pull this off and generate the formatted PDF file from the form data.

Uploaded by

Dominik
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
69 views1 page

Java - Generating An .PDF File Using Data From Text Fields On Form - Stack Overflow

This document discusses generating a PDF file from user-entered form data when a "Print" button is clicked. The form contains several text fields and other elements like radio buttons and a combo box. When printed, the PDF should have a predefined style with labels and tables to neatly display the inputted data, rather than looking like "random crap thrown around". The iText library is often recommended but the person does not know how to use it. The project is offline without servlets. Advice is sought on how to pull this off and generate the formatted PDF file from the form data.

Uploaded by

Dominik
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Quitter le mode lecture

Modifier la police
Sans sérif Sérif

5

Clair Sombre Sépia Auto

Écouter (N)

Voix : par défaut


par défaut Microsoft David - English (United States) Microsoft David Desktop - English (United States) Microsoft Mark - English (United States) Microsoft Zira - English (United States)
Microsoft Zira Desktop - English (United States)

Enregistrer dans Pocket


stackoverflow.com

Generating an .pdf file using data from text fields on form


djerdidjerdi
7711 silver badge66 bronze badges
1–2 minutes

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!

You might also like