在目标C中将RTF文件转换为HTML [英] Convert RTF File into HTML in Objective C

查看:123
本文介绍了在目标C中将RTF文件转换为HTML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将RTF文件转换为HTML格式?我有一个文本编辑器,它以rtf格式保存文件,但我需要将内容放在我的服务器上。为此,我需要将rtf文件转换为html格式。我无法找到有关Objective C的任何帮助。感谢。

解决方案

我不知道Objective-C中的任何库是否支持HTML转换。然而,如果你能够执行转换服务器端,那么这将开辟更多的可能性,例如php和c#库以及gnu实用程序。

p>

例如(您可以google更多):



php: Pa软件的 RTF到HTML转换器(付费产品),Martin Mevald的 RTF Parse class (GPL的代码),Zend的 LiveDocX ,甚至可以替代livedocx在SO alternati ve-for-phplivedocx ..等等



C#:关于SO convert-rtf-to-html simple-convert-rtf-to-html ,或者从MS RTF与HTML之间的转换



GNU: GNU's UnRTF 实用程序。



如果您确实需要Objective- c,那么PHP和GNU解决方案的源代码可以被翻译 - 但这不是一项简单的任务。因此,我仍然认为你最好的选择是做服务器端。


How can I convert an RTF file into an HTMLformat ?? I have a text editor which saves the file in rtf format but I need to put the contents on my server. For that I need to convert the rtf file into that of an html.. I am unable to find any help with regards to Objective C . Thanks.

解决方案

I don't know of any library in objective-c that does rtf to html conversion.

However if you are able to perform the conversion server side then that opens up a lot more possibilities, such as php and c# libraries, as well as gnu utilities.

For example (and you can google for many more):

php: Pa software's RTF to HTML converter (paid product), Martin Mevald's rtf2htm (old GPL'ed software), Marcus Fischer's RTF Parse class (GPL'ed code), Zend's LiveDocX or even alternatives to livedocx on SO alternative-for-phplivedocx .. etc

C#: On SO convert-rtf-to-html, simple-convert-rtf-to-html, or from MS Converting-between-RTF-and-HTML

GNU: GNU's UnRTF utility.

If you really want Objective-c then the source code of the php and GNU solutions could be translated - however that will not be a trivial task. As such I still think your best bet would be to do it server side.

这篇关于在目标C中将RTF文件转换为HTML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆