I need to export an HTML page with some charts in to a PDF, what are some good gems to do this?
PDFKit http://railscasts.com/episodes/220-pdfkit and Prawn http://railscasts.com/episodes/153-pdfs-with-prawn.
My choice is PDFKit.
In deal with charts it can be a problem. Recommend to use graphic charts in this case. But maybe canvas is supported.
I use wicked_pdf to export the ouputted HTML of pages from Ruby on Rails as PDF. It works very well, and supports a ton of options.
I'm leaving this as a breadcrumb for anyone who comes across this question later...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With