I am using two Gems to convert HTML to PDF.
Using "https://github.com/mileszs/wicked_pdf"
gem 'wicked_pdf'
gem "wkhtmltopdf-binary"
/initializer/wicked_pdf.rb
WickedPdf.config = {
exe_path => "xxxxxxxxxxxxxxxxxxx"
}
What path should I use for the exe_path ?
which wkhtmltopdf
This will give you path of your wkhtmltopdf. You should copy this path and paste in your config/intializers/wicked_pdf.rb And then restart your server.