views:

351

answers:

2

I have never done huge amounts of RTF processing, I always used a library to read or generate one and that was a long time ago. Now I need to get more intimate with the format again, and eventually convert it to XML.

Can you recommend a good path to do it so that I have a lot of control on how RTF chunks are parsed and processed?

Initially, I am thinking Perl plus a few good libraries would be a good choice, but all opinions are welcome.

+3  A: 

RTF Manual? Seriously though, a quick google turns up all sorts of tools and libraries. Why reinvent the wheel?

Ken
Why reinvent the wheel? Because it is fun?Now, that's good for a pet project, not for real world ones with expected results and timelines, indeed... :-P
PhiLho
Because existing wheels suck? Not saying that necessarily applies here, but in the past i've ended up panning RTF tools for exactly the reason he describes: lack of control over how they're handled.
Shog9
then why ask questions here if your response is "rtfm"? can,t the same response be put on EVERY question on SO?
Keng
Aw come on... how often do you get to point someone at a real manual about RTF - how could I resist?
Ken
A: 

ScroogeXHTML, a library for RTF to HTML / XHTML conversion, is available for the Java(tm) platform and Delphi. A demo version and online documentation of the API are available on this page:

http://www.mikejustin.com/

or

http://www.betabeans.de/

mjustin