問題描述
我想在我們的 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).
有沒有人有一些建議,庫應該能夠提取文檔的內(nèi)容和斜體、粗體、上標等基本樣式?
Do anyone has some recommendations, the library should be able to extract content of the document and basic styling like italic, bold, superscript?
感謝您的幫助
推薦答案
或者,由于您請求了一個庫,您可能需要查看類似 Docvert.我只是根據(jù)您的問題環(huán)顧四周,這是迄今為止我最喜歡的 PHP.您輸入單詞文件位置,它會將其轉(zhuǎn)換為帶有屬性和所有好東西的簡單內(nèi)容.
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.
這篇關于用 PHP 讀取 docx(Office Open XML)的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!