ruby -v = 1.9.1p378; rails -v = 2.3.8
wkhtmltopdf works fine from the command line - it creates a PDF file. The path to .exe is in the% PATH% variable, and is also correctly specified in the / config / initializers / wicked _pdf.rb file.
Configure controller action on .pdf handler format, but I get the following error
Permission denied - c: / Ruby191 / bin / wkhtmltopdf - -
C:/Ruby191/lib/ruby/1.9.1/open3.rb:67:in 'spawn'
C:/Ruby191/lib/ruby/1.9.1/open3.rb:67:in 'popen3'
C:/work/hello/vendor/plugins/wicked_pdf/lib/wicked_pdf.rb:21:in 'pdf_from_string'
C:/work/hello/vendor/plugins/wicked_pdf/lib/pdf_helper.rb:28:in 'make_pdf'
C:/work/hello/vendor/plugins/wicked_pdf/lib/pdf_helper.rb:39:in 'make_and_send_pdf'
C:/work/hello/vendor/plugins/wicked_pdf/lib/pdf_helper.rb:13:in 'render_with_wicked_pdf'
... controller related code follows ...
I tried to put the wkhtmltopdf.exe file (and related files) in various directories and check permissions on these disks to allow full control to everyone.
Any help regarding where a resolution problem might arise would be appreciated.
As a side note: this works just fine on the command line ruby pdftest.rb
require 'open3'
Open3.popen3('/bin/tools/wkhtmltopdf.exe http://www.google.com/ g.pdf')
PDF . , WEBrick, , , Everyone , wkhtmltopdf.exe