Integrating Wicked-pdf for rails app that can be exported to pdf
This wicked PDF uses the shell utility wk HTML to PDF to serve a PDF file to a user from HTML. In other words, rather than dealing with a PDF generation DSL of some sort, you simply write an HTML view as you would normally, then let Wicked PDF take care of the hard stuff.
To use Wicked PDF, first install wkhtmltopdf. Alternatively, you could use the
wkhtmltopdf-binary gem by including it in your Gemfile.
In controller for the respective pdf action include following piece of code
Include respective pdf action in routes as get member method.