What is it worth in a certain order.
Some time ago I wanted to export to RTF, and then import from RTF, which RTF encounters under MS Word.
The first problem is that RTF is not an open standard. This is the internal MS standard, and therefore they change it as and when they like, and usually donβt worry about compatibility. Currently, RTF versions range from 1.3 to 1.9, and they are all different. Inside, they use twips to measure only for good measure.
I bought an O'Reilly pocket book on this subject, which helped and read a lot of MS documentation, which is good, but there are many and many for each version.
Due to the way that RTF is encoded using a regular expression for control, this is incredibly hard work and requires careful processing and concentration for testing and work. I use the Mac editor, which was built into the regular expression, so I can confidently test each section and embed it in the code.
Due to the number of versions, there is also a lot of incompatibility between versions, but there is a lot of commonality, and in the end it was quite difficult / easy to get to where I wanted (after about a week of reading and a week of coding) and creating a really simple version.
I never found a commercial solution, but I needed to free it for budget, so cut a lot, but be careful when choosing one to make sure that it does what you want and has support.
I donβt think where you came from HTML / XML / XHTML, I converted CSV formats, this is RTF.
I'm not sure what I would recommend DIY or buy. Maybe on a DIY balance, but your own circumstances will dictate it.
Edit: One thing going from content to RTF is easier than the other way around.
BTW does not criticize the MS fior version of RTF, hey, they are proprietary so they can do what they like.