免费(最好)PHP RTF HTML转换器? [英] Free (preferably) PHP RTF to HTML converter?

查看:175
本文介绍了免费(最好)PHP RTF HTML转换器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为包含大量用户输入的RTF文本的旧数据库应用程序编写一个转换器。理想情况下,RAW RTF应该转换为HTML以便在浏览器中显示。

I am writing a converter for an old db app which contains a large amount of user entered RTF text. Ideally, the RAW RTF should be converted to HTML for display in a browser.

我已经尝试 rtfparseclass from < PHP类 ,它工作正常,但似乎被抛出,但一些嵌入式字体定义。例如,原始RTF(如 {\f1\fnil Tahoma;} )总是会截断解析器生成的输出,导致细节丢失。我不太清楚RTF是否足以知道是否应该有效。这个类最后在2004年更新,所以我猜它可能只是过时。

I have tried rtfparseclass from PHP Classes, which works ok, but seems to be thrown off but some of the embedded font definitions. For example, raw RTF like {\f1\fnil Tahoma;} always truncates the output produced by the parser, causing detail to be lost. I don't know RTF well enough to know if that should be valid or not. The class was last updated in 2004 so I'm guessing that it may just be out of date.

除了更新 rtfparseclass 忽略字体,有谁知道一个PHP库将RTF转换为HTML?

Other than updating rtfparseclass to ignore the fonts, does anyone know of a PHP library to convert RTF to HTML?

推荐答案

查看这里: http://freshmeat.net/projects/rtf2htm/


RTF到HTML转换器将RTF
文件(以Windows-1250编码方式)转换为
HTML文件(以ISO-8859-2编码方式)。

The RTF to HTML convertor converts RTF files (in Windows-1250 encoding) to HTML file (in ISO-8859-2 encoding).

这篇关于免费(最好)PHP RTF HTML转换器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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