同时使用wkhtmltopdfWickedPdf停在我的本地系统
undefined method `pdf_from_string' for #<WickedPdf:0x7f4b82a369c8>
我wicked_pdf.rb
WickedPdf.config = {
:wkhtmltopdf => '/usr/local/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 google.com google.pdf
是生成PDF我得到这个错误的工作工作正常。
你为什么不以你的问题添加红宝石标签..可能帮助 – ppant 2012-03-14 11:50:28