composer require cshaptx4869/html2word
addFile('resource/tpl.html')
->eraseLink()
->fetchImg('http://php.test/html2word')
->makeFile('resource/a.doc');
MhtFileMaker::getInstance()
->addFile('resource/tpl.html')
->eraseLink()
->fetchImg('http://php.test/html2word')
->makeFile('resource/a.doc');
// 2、浏览器下载
Html2WordMaker::getInstance()
->addFile('resource/tpl.html')
->fetchImg('http://php.test/html2word')
->download();
MhtFileMaker::getInstance()
->addFile('resource/tpl.html')
->fetchImg('http://php.test/html2word')
->download();Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号