从 Rails 生成 PDF [英] Generate PDF from Rails
本文介绍了从 Rails 生成 PDF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Ruby On Rails Wiki 列出了几个有助于的库Rails 中的 PDF 生成.我需要打印地址标签(以信件格式,因此每页 12-15 个地址)并且无法决定使用哪一个.有什么推荐吗?
The Ruby On Rails Wiki lists a couple of libraries that facilitate PDF generation in Rails. I need to print out address labels (in letter format, thus 12-15 addresses per page) and cannot decide which one to use. Any recommendations?
推荐答案
目前我见过的最好的是 Prawn:
The best I've seen so far is Prawn:
- 大虾 http://prawn.majesticseacreature.com/
- http://advent2008.hackruby.com/past/2008/12/17/awn_and_the_future_of_ruby_pdf_generation/
- http://railstips.org/2008/10/14/how-to-generate-pdfs-in-rails-with-prawn
- Prawn Rails 插件:http://www.cracklabs.com/prawnto
这篇关于从 Rails 生成 PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文