使用word文档作为模板并替换[关闭]内的标签

使用word文档作为模板并替换[关闭]内的标签

问题描述:

I've looked everywhere but have found nothing, I've got a word document importer on my website and my client would like to import a word document with tags like %Test1 and these would be replaced by a PHP script and exported in a .doc format.

I've no idea how to go about doing this, so pointers or examples would be greatly appreciated ;)

我到处寻找但什么都没找到,我的网站上有一个word文档导入器和我的客户端 想要导入一个带有%Test1标签的word文档,这些标签将被替换为PHP脚本并以.doc格式导出。 p>

我不知道如何去做 这个,所以指针或例子将非常感谢;) p> div>

I've found a great library to do just this: PHPWord.