Forums » Support and troubleshooting » RuntimeError (Wkhtmltopdf is not executable)
Hi,

I am getting below error from fedena in pdf generation.

RuntimeError (Wkhtmltopdf is not executable):
app/controllers/application_controller.rb:292:in `render'
app/controllers/employee_controller.rb:682:in `profile_pdf'

wkhtmltopaf is working fine with command wkhtmltopdf google.com test.pdf

Below is details of wicked_pdf.rb

WickedPdf.config = {
:wkhtmltopdf => "/usr/bin/wkhtmltopdf",
:layout => "pdf.html",
:margin => { :top=> 40,
:bottom => 20,
:left=> 30,
:right => 30},
:header => {:html => { :template=> 'layouts/pdf_header.html'}},
:footer => {:html => { :template=> 'layouts/pdf_footer.html'}},
#:exe_path => '/usr/bin/wkhtmltopdf',

}

wkhtmltopdf and wkhtmltopdf-amd64 files are stored at /usr/bin and working fine in stand alone.

Can anyone help me fix the error.

Thanks