Convert HTML to RTF (HTML2RTF converter) [closed]

余生长醉 提交于 2019-12-03 09:11:41
Darren westall

Easiest way would be to use the following PERL module.

http://metacpan.org/pod/HTML::FormatRTF

Quick and about 10 lines of code :)

If OpenOffice on the command line is an option, check out this Forum entry with a great number of starting points. There are certainly stand-alone tools as well, but OpenOffice has quite good rendering capabilities and I'm quite sure it will successfully convert a lot that other converters won't (bulleted / numbered lists, for example).

Zopyx.convert is based on the high-quality BeautifulSoup html parser. It needs Java & Jython.

If the Java dependency is too much, you should be able to use BeautifulSoup to iterate over the HTMl and build up the output using the PyRTF RTF generator. Not a five-minute task!

You might consider combining gnuhtml2latex and latex2rtf

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