File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes RTF to PDF using Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "RTF to PDF using Java" Watch "RTF to PDF using Java" New topic

RTF to PDF using Java

Amudhan Shan

Joined: Sep 02, 2008
Posts: 2


Is there any open source API or others which can be used to convert a RTF document to PDF document using Java.

It should also be able to convert double byte characters.

Thanks in Advance
Rob Spoor

Joined: Oct 27, 2005
Posts: 19543

Have you already tried iText?

How To Ask Questions How To Answer Questions
Amudhan Shan

Joined: Sep 02, 2008
Posts: 2
Tried using Itext version 2.1.5 and 2.1.7. But the alignment of the pdf was not good. Also it was not able to render some of the RTF content properly.

When I searched it was found that it was still under development RTF to PDF conversion in iText and the classes corresponding to conversion were available in itext-rtf.jar.

Hence I tried using the latest itext version like 5.0.0 and 5.0.2 and found that the corresponding conversion classes were found missing in latest versions.

So I assume that they stopped such conversion in latest itext. Please correct me if my understanding is wrong.
I agree. Here's the link:
subject: RTF to PDF using Java
Similar Threads
converting xml into rtf
Regarding APIs
Converting RTF to XSL-FO
Coverting RTF to DOC
Convert HTML to RTF