Question

Anyone has a suggestion how you could create Bar/Chart-Diagrams in PDF (with Prawn f.e) in Ruby on Rails?

I didn't found any usefull information in google.. :/

Was it helpful?

Solution

I would use D3.js for charts to generate SVG based elements and would use Prawn gem for generating pages in PDF format.

OTHER TIPS

wkhtmltopdf is a pretty robust open source x-platform tool that lets you convert any web page to pdf.

my experience of it is that it works very well

then you've got your pick of charting javascript frameworks or server side charts

here's a gem

wkhtmltopdf is now at wkhtmltopdf.org (with sourcecode at github.com/wkhtmltopdf/wkhtmltopdf )

You should check out http://github.com/fullscreen/squid – a Ruby library to plot charts in PDF files

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top