Meaningless Drivel is fun!*
The moose likes Other Open Source Projects and the fly likes on clicking Submit in JSP, create a PDF file using the information in the form. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "on clicking Submit in JSP, create a PDF file using the information in the form." Watch "on clicking Submit in JSP, create a PDF file using the information in the form." New topic
Author

on clicking Submit in JSP, create a PDF file using the information in the form.

Laxmi Something
Greenhorn

Joined: May 14, 2013
Posts: 2
On clicking Submit button in JSP form, I would like to generate a PDF file using the information given by user in the form. What are the ways to do it?

Thank you
Laxmi


Thank you
Laxmi
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60773
    
  65

Submit the form to a servlet that creates the PDF stream and returns it as the response, setting the appropriate response headers. There are numerous libraries that help create PDF.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Mansukhdeep Thind
Ranch Hand

Joined: Jul 27, 2010
Posts: 1157

Welcome to the ranch Laxmi.

iText is a popular open source library used to handle PDFs from java programmatically.


~ Mansukh
 
wood burning stoves
 
subject: on clicking Submit in JSP, create a PDF file using the information in the form.
 
Similar Threads
run java code on clicking Submit button in JSP form
Passing data from PDF form (made in acrobat writer) to a JSP
Can a web application open a pdf file that exists on the client side
Servlet Response
Editable XML-PDF