PDF导出在rails中 [英] Pdf export in rails
本文介绍了PDF导出在rails中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要将带有图表的HTML页面导出为PDF格式,有什么好的宝石可以做到这一点?
I need to export an HTML page with some charts in to a PDF, what are some good gems to do this?
推荐答案
PDFKit http://railscasts.com/episodes/220-pdfkit 和Prawn http://railscasts.com/episodes/153-pdfs-with-prawn 。
PDFKit http://railscasts.com/episodes/220-pdfkit and Prawn http://railscasts.com/episodes/153-pdfs-with-prawn.
我的选择是PDFKit。
My choice is PDFKit.
在处理图表时可能会遇到问题。建议在这种情况下使用图形图表。但也许画布是支持的。
In deal with charts it can be a problem. Recommend to use graphic charts in this case. But maybe canvas is supported.
这篇关于PDF导出在rails中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文