开发者

Is there a way to parse the text out of a Word doc with PHP?

My client wants me to extract the text out of an MS Word doc from MS Office 97 and forward to 2011 versions. Is there an API for that with PHP, free or commercial?

EDIT: Oh man, look at the comments. Yeah, I forgot to include "want this to work on Linux, as in C开发者_运维知识库entOS Linux (like most shared Linux hosting plans)".


The only way I know of under linux is to use the Apache POI

http://poi.apache.org/

It's Java, but it's supposed to read and write both the new XML based files, and the older OLE Compound document files.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜