废话不说,直接上码: //在你的 templatefile.docx 中必须有一个文本 ${foto} 才能工作 $templateProcessor = new \PhpOffice\PhpWord\TemplateProcess...