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 8 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(5)
尝试使用
pandoc
所以你甚至可以使用
Try using
pandoc
So you can even use
就在你的 php 页面的顶部。在这方面的任何代码之前应该是顶部代码。
这会将所有 html 转换为 MSWORD,现在您可以根据客户要求对其进行自定义。
just past this on head of your php page. before any code on this should be the top code.
this will convert all html to MSWORD, now you can customize it according to your client requirement.
一个不错的选择是使用像 Docverter 这样的 API。 Doverter 将允许您使用 API 将 HTML 转换为 PDF 或 DOCX。
A good option is to use an API like Docverter. Docverter will allow you to convert HTML to PDF or DOCX using an API.
执行此操作时,我发现最简单的方法是:
When doing this I found it easiest to:
其他替代方案只是将文件重命名为 .doc.....
http://msdn.microsoft.com/en-us/library/microsoft.office.interop.word(office.11).aspx
这是一个很好的起点。您还可以尝试使用此 Office Open XML。
http://www.ecma-international.org/publications/standards/ Ecma-376.htm
Other Alternatives from just renaming the file to .doc.....
http://msdn.microsoft.com/en-us/library/microsoft.office.interop.word(office.11).aspx
Here is a good place to start. You can also try using this Office Open XML.
http://www.ecma-international.org/publications/standards/Ecma-376.htm