I’ve got an application that collects and displays information about accident reports, and the client wants to be able to:
- Create a PDF of the data in the view (probably with a “Create PDF” button) and have it come out nicely formatted without all the stuff that’s normally on the page. What’s the “best” way to accomplish this: Prawn? wkhtmltopdf? which gems?. Seems like Prawn and prawn_to used to be all the rage, but have fallen by the wayside of late.
- Just provide css print option that gets rid of much of the clutter.Know of any good tutorials on how to accomplish this? I’ve tried some “media=print” options but they all seem to wind up fouling the output in display mode.