从PHP处理Microsoft Word Office 2007 .docx文档

问题描述:

我需要PHP中的一个选项来处理.docx(Microsoft Office 2007)文档.

I need an option from within PHP to Manipulate .docx (Microsoft Office 2007) document.

我需要:

  1. 阅读内部文字
  2. 转换为.html
  3. 要在浏览器中查看它们.
  4. 替换文字.

我知道我可以使用Word Automation来创建Microsoft Word的COM对象,但是它太慢,不稳定并且必须将其安装在服务器上.

I know I can use Word Automation, creating a COM object of Microsoft Word, but it's too slow, unstable and I have to have it installed on the server.

是否有任何库或代码可以通过PHP做到这一点?

Is there any library or code that can do it from PHP?

为此,有 PHPWord PHPExcel的作者.

There is PHPWord for that by the authors of PHPExcel.