开发者

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

开发者 https://www.devze.com 2023-03-22 23:52 出处:网络
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?

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

精彩评论

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

关注公众号