CodeLover
asked on
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.
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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 :-)