I am trying to read RTF file using Java and I have found Swing's RTFEditorkit.is there any other jar files available to read rtf files. Am not satisfied with this answer.
Asked
Active
Viewed 1,713 times
2
-
do want to extract only plain text ? – Sage Oct 24 '13 at 10:46
-
@Sage i want to extract images ,text with their co-ordinates. – kerZy Hart Oct 24 '13 at 10:50
2 Answers
2
You can try the kit as alternative for default one. It supports images and text as well.

StanislavL
- 56,971
- 9
- 68
- 98
1
What kind of information do you want to extract? RTF is a really simple format, you should be able to get most information without using a real parser but regular expressions.

ooxi
- 3,159
- 2
- 28
- 41
-
-
Look inside the file with notepad and search for the images of interest :) – ooxi Oct 24 '13 at 10:41
-
:ya its working fine ,but am getting huge amount of data when am opening with text editor.so how can i identify the co-ordinates of text and images from there.( am working in linux(ubuntu)). – kerZy Hart Oct 24 '13 at 10:59
-
Search vor `\picwgoal
` `\pichgoal – ooxi Oct 24 '13 at 12:06` for example `\picwgoal1035\pichgoal1035` for image dimensions. Getting the position of text is quite hard since it depends on page format. The position can be found in `\posy ` / `\posx `