从PHP处理Microsoft Word Office 2007 .docx文档 [英] Manipulating Microsoft Word Office 2007 .docx document from PHP

查看:198
本文介绍了从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.

这篇关于从PHP处理Microsoft Word Office 2007 .docx文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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