We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed last year.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
我的选择是 https://packagist.org/packages/phpoffice/phpword
1 行安装:
并且您可以将 HTML 转换为 RTF 或 DOC:
https://github.com/PHPOffice/PHPWord/blob/08064480ea915a7283a5a09ba68ad04869cb259e/samples/Sample_26_Html.php
这是如何使用 Symfony 框架进行样式设置的详细文章:
https: //ourcodeworld.com/articles/read/361/how-to-create-a-word-file-with-php-in-symfony-3
PS:
以下是其他可能选项的列表:
https://www.w3.org/Tools/html2things.html
My choice is https://packagist.org/packages/phpoffice/phpword
1 line to install:
And you can convert HTML to RTF or DOC:
https://github.com/PHPOffice/PHPWord/blob/08064480ea915a7283a5a09ba68ad04869cb259e/samples/Sample_26_Html.php
Here is detailed article how to do styling using Symfony framework:
https://ourcodeworld.com/articles/read/361/how-to-create-a-word-file-with-php-in-symfony-3
P.S.:
Here is a list of other possible options:
https://www.w3.org/Tools/html2things.html