WickedPdf stoped working on my local system-Collection of common programming errors
I’m getting this error while generating pdf using wkhtmltopdf
undefined method `pdf_from_string' for #
my 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'}
on command line
wkhtmltopdf google.com google.pdf 
is working fine.
Can anyone please suggest what should I do to solve this error?
- 
“pdf_from_string” means, that it makes pdf from STRING. So to make this method work it should recieve string. - it is an object.It should look like this: pdf_from_string("
 some html code
 ")
Originally posted 2013-11-27 05:07:39.