php 在线显示word文档

$phpword = \PhpOffice\PhpWord\IOFactory::load($newDoc,'Word2007');
$objWriter = \PhpOffice\PhpWord\IOFactory::createWriter($phpword);
echo $content = $objWriter->getContent();

评论

captcha