Brian P. wrote:
I have a requirement to generate views (list and show views, including
data and uploaded images) into a format that can be saved and/or
emailed. I’m looking for opinions on the easiest way to achieve this.
HTML can be saved or e-mailed. So can plain text. What more do you
I’ve researched the use of both PDF::Writer and Prawn, and it seems that
to re-generate my views in pdf format will require a lot of work. Is
there an easier way using .rtf or .doc files? The customer does not
have a preference, they just want the ability save/send hard-copies.
Use PDF if HTML is not sufficient. MS Word files have no place on the
Web or in e-mail since they do not reliably preserve formatting across
computers, and RTF suffers from the same issues. If you don’t want to
recreate your views in Prawn markup, then try prawn_format, Flying
Saucer, wkhtmltopdf, or Prince, all of which will generate PDF files
from HTML. .