How to convert RTF to HTML

情到浓时终转凉″ 提交于 2019-12-24 08:55:25

问题


Could you please tell me if there is a good free C++ class/library to convert RTF to HTML? Thank you!


回答1:


I would use Word Automation (i.e. integrate with Microsoft Office). Then, through the MS Word class, open the RTF, save it as HTML.

  1. Open rtf file.
  2. SaveAs using WdSaveFormat = wdFormatHTML

http://msdn.microsoft.com/en-US/library/microsoft.office.tools.word.document.saveas(v=VS.100).aspx



来源:https://stackoverflow.com/questions/8199129/how-to-convert-rtf-to-html

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!