I downloaded whkhtmltopdf manually via:
http://wkhtmltopdf.org/downloads.html
After this I changed my wicked_pdf.rb to:
WickedPdf.config = {
#:wkhtmltopdf => '/usr/local/bin/wkhtmltopdf',
#:layout => "pdf.html",
:exe_path => 'C:\Program Files\wkhtmltopdf\bin\wkhtmltopdf'
}
I tried "where wkhtmltopdf" in my windows console and I obtain this:
c:\RailsInstaller\Ruby2.1.0\bin\wkhtmltopdf
c:\RailsInstaller\Ruby2.1.0\bin\wkhtmltopdf.bat
After change change "exe_path" I obtain the same error.
尝试
:exe_path => 'C:/Program Files/wkhtmltopdf/bin/wkhtmltopdf.exe'
On Windows you must specify the exe extension.
so the current configuration is
WickedPdf.config = { :exe_path => 'C:\Program Files\wkhtmltopdf\bin\wkhtmltopdf.exe' }
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.