Philip Hallstrom wrote:
render_to_string
http://api.rubyonrails.org/classes/ActionController/Base.html#M000659
That puts it into a local variable anyway... if you can then pass that
to htmldoc you're on your way. Not sure how this might affect any
paths to CSS/images for HTMLDOC though.
render_to_string
http://api.rubyonrails.org/classes/ActionController/Base.html#M000659
That puts it into a local variable anyway... if you can then pass
that
to htmldoc you're on your way. Not sure how this might affect any
paths to CSS/images for HTMLDOC though.
Thanks. CSS is no problem
You might want to check out:
http://code.google.com/p/wkhtmltopdf/
http://www.princexml.com/
wkhtmltopdf is free. prince will cost you. prince has better css
print-related implementation coverage at this time, but wkhtmltopdf
can be a very good alternative depending on the needs of your
Since I started using tools (like prince/wkhtmltopdf) to generate pdfs
from html/css for web app projects that need to gen pdfs, I've never
gone back to using low-level pdf-gen'ing libs/tools (like prawn).
Just requires so much less work.
By the way, you may also want to look into using
4 matches
Mail list logo