我已经安装了wicked_pdf gem和wkhtmltopdf但是当我尝试生成pdf时我得到了一个错误
Failed to execute:
"E:/nupur/wkhtmltopdf/wkhtmltopdf.exe" -q "file:///C:/Users/Wish7/AppData/Local/Temp/wicked_pdf.608.3884.html" "C:/Users/Wish7/AppData/Local/Temp/wicked_pdf_generated_file.608.3885.pdf"
Error: #<Java::JavaLang::IllegalArgumentException:0x1e48d50>
E:/nupur/netbeans/ruby/jruby-1.5.1/lib/ruby/gems/1.8/gems/wicked_pdf-0.9.6/lib/wicked_pdf.rb:68:in `pdf_from_string'
E:/nupur/netbeans/ruby/jruby-1.5.1/lib/ruby/gems/1.8/gems/wicked_pdf-0.9.6/lib/pdf_helper.rb:63:in `make_pdf'
E:/nupur/netbeans/ruby/jruby-1.5.1/lib/ruby/gems/1.8/gems/wicked_pdf-0.9.6/lib/pdf_helper.rb:76:in `make_and_send_pdf'
E:/nupur/netbeans/ruby/jruby-1.5.1/lib/ruby/gems/1.8/gems/wicked_pdf-0.9.6/lib/pdf_helper.rb:21:in `render_with_wicked_pdf'
C:/Users/Wish7/Documents/NetBeansProjects/HealthRecord/app/controllers/appointments_controller.rb:58:in `show'
C:/Users/Wish7/Documents/NetBeansProjects/HealthRecord/app/controllers/appointments_controller.rb:54:in `show'
我的config / initializer / wicked_pdf包含以下代码:
WickedPdf.config{
:exe_path =>'E:/nupur/wkhtmltopdf/wkhtmltopdf.exe}
任何人都可以帮助我。我被困住了。