用 PHP 读取 docx(Office Open XML)

2021-12-25 00:00:00 import ms-word php office-2007

我想在我们的 CMS 中添加一个单词导入功能,唯一的问题是我似乎找不到一个好的库来阅读 docx 文件(Word 2007).

I want to add an word import function to our CMS, the only problem I cannot seems to find a good library for reading docx files (Word 2007).

有没有人有一些建议,库应该能够提取文档的内容和斜体、粗体、上标等基本样式?

Do anyone has some recommendations, the library should be able to extract content of the document and basic styling like italic, bold, superscript?

感谢您的帮助

推荐答案

或者,由于您请求了一个库,您可能需要查看类似 Docvert.我只是根据您的问题环顾四周,这是迄今为止我最喜欢的 PHP.您输入单词文件位置,它会将其转换为带有属性和所有好东西的简单内容.

Or, since you requested a library, you may want to look into something like Docvert. I was just looking around based on your question, and it's my favorite so far for PHP. You input the word file location, it transforms it into something simple with the attributes and all that good stuff.

相关文章