I use the wicked_pdf gem to convert HTML to PDF. According to the descriptions on Github, I installed everything correctly. But I get a runtime error -
RuntimeError (Bad wkhtmltopdf path: / usr / local / bin / wkhtmltopdf): app / controller / orders_controller.rb: 46: in `create
`44 @count = Item.count(:qty) 45 @temp = Item.where(:received => true).count() 46 render :pdf => "Bill" , 47 :template => 'orders/create.pdf.erb', # Excluding ".pdf" extension. 48 page_height: 100, 49 page_width: 80`
and wkhtmltopdf is installed on my system at / usr / local / bin / wkhtmltopdf
It is indicated that the path for wkhtmltopdf should be where it is already installed.
I canβt understand what the problem is.
source share