• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 918
  • Last Modified:

Convert rtf file to pdf file

Hi all,

I have a jsp page to generate a report and save it as a rtf file and show it on the page. Is there a way to convert the rtf file to a pdf file and show it on the page? I know that there are some programs that can convert files to pdf files. But I need it to be done automatically with java codes. Thanks.
0
CodeLover
Asked:
CodeLover
1 Solution
 
bloodredsunCommented:
Yes you can use iText http://www.lowagie.com/iText/
0
 
TimYatesCommented:
iText AFAIK can't convert RTF to PDF:

http://www.lowagie.com/iText/faq.html#doc2pdf

:-/

But have no fear CodeLover, as instead of generating an RTF, you can use the library linked to by bloodredsun to generate a PDF instead...

So just skip the RTF stage ;-)

Tim

PS:  No points for me, bloodredsun's answer is the way to go :-)
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now