我需要一种相当可靠的方式将一个word文档转换为PHP中的字符串。在PHP中读取word文档
我刚刚安装了Antiword。它适用于许多文件,包括doc和docx,但它对某些文件有问题,并给出错误:“[文件名]不是Word文档”,即使它们是。
我关于阅读到这个问题:
This is the new-style XML-in-a-zip-container format, which is completely different to the binary Microsoft Word formats which antiword handles most of.
There's no realistic likelihood of antiword supporting this - the last antiword upstream release was 2005-10-21 (which predates this XML format).
是否有阅读在PHP这些新格式的Word文档某种方式?
也许https://github.com/PHPOffice/PHPWord? – chris85
我确实认为,但我很怀疑它的功能后阅读:http://stackoverflow.com/questions/20555057/how-to-read-doc-file-via-phpword – dlofrodloh