2016-07-15 7 views
-2

PHPで単語文書を文字列に変換するには、かなり信頼できる方法が必要です。PHPで単語文書を読む

私はちょうどアンチワードをインストールしました。これは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文書を読んでいくつかの方法はありますか?

+0

おそらくhttps://github.com/PHPOffice/PHPWord? – chris85

+0

私はそれを考慮しましたが、読んだ後にその能力について疑念を抱いています:http://stackoverflow.com/questions/20555057/how-to-read-doc-file-via-phpword – dlofrodloh

答えて

0

私はPHPOfficeの一部であるPHPWordを使用します...私はそれを使用していませんが、私はPHPExcelを使用しており、新しいフォーマット(zipのxml)で完璧に動作します。 試してみてください!

+0

ありがとう、それは二度提案されています私はそれに行くと報告を返す – dlofrodloh

関連する問題