Other open source pdf libraries can be found here
http://java-source.net/ope
Regards,
Tomas Helgi
Main Topics
Browse All TopicsHi,
In our web application we use applets inside jsp using object tag and display the results in grid and graphs.Now we need to expor the data from jsp to pdf. Is there any open source tool to export this.
Please suggest me on this.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Other open source pdf libraries can be found here
http://java-source.net/ope
Regards,
Tomas Helgi
Hi TomasHelqi,
I found iText will suit my requirement but how to move the applet inside the object in jsp to pdf. I don't find any thing which will do this. Please help me in this reagard. Inside jsp I just use the object tag which will automatically inserts the applet. This applet extends panel for drawing the grid.
Is there any tag in iText which I can use to export the applet object or which converts HTML to pdf.
Thanks & Regards,
Sunil
Hi!
I suggest you put (if you can ) a "pdf - button" which prints the JTable (assuming that the grid is in that object) into a PDF file
and hands it ower to the user.
Here is an example on how to do that
http://www.java2s.com/Code
You can do similar things with Graphs.
Other PDF examples you should look at are here
http://www.java2s.com/Code
Regards,
Tomas Helgi
Hi!
What you need is a client side scripting to create a PDF file.
I found this on the web and you could probably use is it.
http://www.collinssoftware
Regards,
Tomas Helgi
An open source Javacript that does this can be found here
http://code.google.com/p/j
http://jspdf.googlecode.co
I didn't notice until to late that the other javascript costs a lot.
Regards,
Tomas Helgi
Hi TomasHelqi,
Thanks a lot for spending lot of time in answering me but the two links which u provided was useful but the problem is that the former link is paid one and there is no free trial of that and the later one does not run on IE. Our application supports only IE. But your suggestions are highly appreciated.
Is there any alternate solution which I can come out from this problem.
Thanks & Regards,
Sunil
Hi Tomas,
Even I tried that in a stand alone program it is working fine but in my while loading applet it is throwing error as : com.lowagie.text.Document class not found exception. Even though I kept the jar inside my web-inf/lib folder. Is it necessary to add the jar file any where else.
In my application all the applet class files are inside jar file and when this applet tries to acces this class it is throwing the error. Can u suggest me where to keep the jar.
Thanks & Regards,
Sunil
Hi!
Hmmm.
You should try either to put the iText jar file in the applet archive similar to this
<applet codebase="."
code="TestApplet.class"
archive="MyApplet.jar, iText.jar"
name="MyApplet"
id="MyApplet"
height="0"
width="0">
</applet>
Or try to put it in the domains (running your web app) or Application Server global lib directory.
Regards,
Tomas Helgi
Business Accounts
Answer for Membership
by: TomasHelgiPosted on 2009-10-30 at 03:06:38ID: 25701477
Hi!
xt/ ).
/Java/PDF- RTF/Catalo gPDF-RTF.h tm /Java/Serv lets/Pdf.h tm
You can use iText for that ( http://www.lowagie.com/iTe
Also here are some PDF examples that you can look at
http://www.java2s.com/Code
http://www.java2s.com/Code
Hope this helps.
Regards,
Tomas Helgi