将HTML转换为word文件? [英] Convert HTML to word file ?
本文介绍了将HTML转换为word文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在word文件中转换ruby文件,例如(docx文件)。对于PDF,我们虾宝石。但是有没有任何文件的宝石。我试图将我的html文件转换为word文件,以便它也可以对用户进行编辑。在这种情况下应该做什么?我打算用word文件转换该文件。它可能与否。
解决方案
使用htmltoword gem。
https://github.com/nickfrandsen/htmltoword
自2015年11月以来尚未更新,但效果良好。
How to convert ruby file in word file i.e (docx file). For pdf, we prawn gem. But is there any gem for word file. I am trying to convert my html file in word file so that it can be editable for user too. What should do in that case ? I was planning to convert that file in word file. Will it be possible or not.
解决方案
Use htmltoword gem. https://github.com/nickfrandsen/htmltoword
it hasn't been updated since November 2015, but works well.
这篇关于将HTML转换为word文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文