Meaningless Drivel is fun!*
The moose likes Servlets and the fly likes Generating PDF and RTF file from jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Generating PDF and RTF file from jsp" Watch "Generating PDF and RTF file from jsp" New topic
Author

Generating PDF and RTF file from jsp

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
HI guys
I have a requirement where i have to generate report in PDF and RTF format on fly using the data from the database . The client should be able to view those reports in the browser. Is there any way to generate report in such format using JSP.
Thanks in advance
------------------
Prasoon
Cameron Park
Ranch Hand

Joined: Apr 06, 2001
Posts: 371
I had seen one of the code examples setting MIME type to PDF, but I never got it to work. Thank you for asking though, because I really like to find out also.
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
"Prasoon",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please log in with a new name which meets the requirements.
Thanks.

Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Peter den Haan
author
Ranch Hand

Joined: Apr 20, 2000
Posts: 3252
Take a look at Cocoon.
- Peter
Anil Vupputuri
Ranch Hand

Joined: Oct 31, 2000
Posts: 527

Hi,
We are using Sitraka's JClass PageLayout which provides sophisticated and easy-to-use APIs for adding text, images, and tables to any document. Output directly to the Java AWT Printer, Acrobat PDF, HTML, PostScript Level 2, or PCL 5. Customize almost every aspect of your report styles and print output for professional results.
HTH..
Anil

[This message has been edited by Anil Vupputuri (edited April 24, 2001).]
[This message has been edited by Anil Vupputuri (edited April 24, 2001).]


SCJP 1.5, SCEA, ICED (287,484,486)
David Freels
Ranch Hand

Joined: Feb 01, 2001
Posts: 102
Try iText (http://www.lowagie.com/iText). There is support for PDF and HTML. PageLayout from Sitraka is nice, but expensive. I helped evaluate it and found that the HTML output was subpar compared to iText and it eats a lot of memory. iText also supports rendering PDF and HTML at the same time.
David
[This message has been edited by David Freels (edited April 24, 2001).]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Generating PDF and RTF file from jsp
 
Similar Threads
Coverting RTF to DOC
generate report in pdf format through a JSP page
Converting RTF to XSL-FO
Convert a report in Jsp to PDF format
Jasper Reports for RTF format and single object