Free Support Forum - aspose.com

Generate PDF on click of JSP form submit

Hi
I want to generate PDF on click of JSP form submit.
I have a requirement where
I have a Java-J2EE web application.
In the web application I have a JSP form.
It have 4-5 fields like First Name, Last Name, Address, State, Zip, Phone etc.
My application is deployed on Sun Web Server.

I want that, whenever a client machine accesses this JSP form and clicks submit,
a PDF should be generated with form field values.

Is it possible with Apose.pdf api.


Thanks
mrPdf

Hi,

Thanks for considering Aspose.

We have a component named Aspose.Pdf for Java which offers the capability to generate PDF documents from scratch. You can generate the document using our API, convert an image document into PDF format or you can transform an XML document into PDF format (the XML file must be in Aspose.Pdf compatible format). As per your requirement, once the user clicks the submit button, you can call the methods of Aspose.Pdf for Java and pass the user data as argument and generate the PDF document or, you can generate the PDF form document using Aspose.Pdf for Java and display it in the user browser. In both the cases, you need to specify the document layout by your self.

For more related information, please visit FormField

I would also recommend you to visit the following link for information on Your First Application using Aspose.Pdf

You can download the latest version of Aspose.Pdf for Java 2.5.0 from here.

In case it does not resolve your problem or you have any further query, please feel free to contact.