Convert RTF to HTML in .NET

后端 未结 4 803
陌清茗
陌清茗 2021-01-19 18:47

I\'ve managed to do the reverse using WebBrowser and RichTextBox.

But how would I convert RTF to HTML?

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-19 19:23

    If you want to do it programattically you should parse your rtf (is a simple text based file), convert rtf control words to html tags.

    Here you can find the rtf specs http://www.biblioscape.com/rtf15_spec.htm

    or use an already existing converter: http://sourceforge.net/projects/rtf2html-lite/

提交回复
热议问题