Phpword - не могу прочитать файл docxPhp

Кемеровские программисты php общаются здесь
Anonymous
Phpword - не могу прочитать файл docx

Сообщение Anonymous »

Я пытаюсь прочитать файл docx с помощью phpword, но я получаю следующую ошибку. I can't seem to find a solution to this anywhere:


PHP Fatal error: Uncaught exception 'PhpOffice\PhpWord\Exception\Exception' with message '"Word2007" is
not a valid Reader.'


This is the PHP code to Загрузите файл: < /p>

$phpWord = \PhpOffice\PhpWord\IOFactory::load($filepath1);
$xmlWriter = PhpOffice\PhpWord\IOFactory::createWriter($phpWord , 'PDF');
< /code>

Любая помощь будет очень оценена!

Подробнее здесь: https://stackoverflow.com/questions/487 ... -docx-file

Вернуться в «Php»