2

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.

Community
  • 1
  • 1
kerZy Hart
  • 181
  • 4
  • 17

2 Answers2

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
  • :i want to extract images ,text with their co-ordinates. – kerZy Hart Oct 24 '13 at 10:28
  • 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` 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` – ooxi Oct 24 '13 at 12:06