We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

Convert rtf file to pdf file

CodeLover
CodeLover asked
on
Medium Priority
937 Views
Last Modified: 2008-02-01
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.
Comment
Watch Question

CERTIFIED EXPERT
Top Expert 2006
Commented:
Yes you can use iText http://www.lowagie.com/iText/

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
CERTIFIED EXPERT
Top Expert 2004

Commented:
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 :-)
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.