wkhtmltopdf - wicked_pdf gem throws Runtime error on Windows -
runtimeerror @ /reports/1/print bad wkhtmltopdf's path: bundler: command not found: install missing gem executables `bundle install`
error happening when render pdf: "pdf_name"
called inside controller.
gems using - rails 4.2
, wkhtmltopdf-binary 0.9.9.3
, wicked_pdf 0.11.0
.
i don't understand error means , how can resolve it. in advance.
after downloading , installing wkhtmltopfd directly in c drive (move out if inside program files), make wicked_pdf.rb in intializers dir code in it:
wickedpdf.config = { #:wkhtmltopdf => '/usr/local/bin/wkhtmltopdf', #:layout => "pdf.html", :exe_path => 'c:\wkhtmltopdf\bin\wkhtmltopdf.exe' }
restart rails server , must fixed :)
Comments
Post a Comment