从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?
推荐答案
到目前为止,我所见过的最好的是大虾:
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
- 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 plugin: http://www.cracklabs.com/prawnto
这篇关于从Rails生成PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文