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
in your project directory terminal. It will give you path. Paste that path in config/initializers/wicked_pdf.rb and then restart your server – Grassgreen