rtf2pdf question

Posted on 2004-08-16
Last Modified: 2012-05-05

I would like to know how to convert a rtf file to pdf file using java?
I know iText library, but I'm not sure does this library can be used to do this conversion.
Can someone give me a sample, or tell me what other libraries can I use?

Question by:acanuva
  • 4
  • 2
LVL 35

Expert Comment

ID: 11807983
LVL 35

Expert Comment

ID: 11807985

Expert Comment

ID: 11816863
Hava a look on this...
this will do for u..

or the  usual way like
Using RTF to FO conversion, then using FOP to FO to PDF conversion
have a look on FOP site also.. and

Try the will do..

Best of Luck
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.


Author Comment

ID: 11889378
Sorry for the late reply and thanks to all you experts.

I tried jfo (, it really works, but the result is not very satisfying.
I'll take a detailed look at windwardreports.
LVL 35

Expert Comment

ID: 11889656
The first link I posted has loads of libraries. Did you use any?

Author Comment

ID: 11910770
Yes, but most of them are used to create files of rtf or other formats.
I think what I need is something like a rtf parser, and then convert the parser result to pdf or something else.
LVL 35

Accepted Solution

girionis earned 50 total points
ID: 11910917
You do not need any special packages for RTF processing, java already comes with a few of them. Take a look here:

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question