search for: pdf_from_str

Displaying 5 results from an estimated 5 matches for "pdf_from_str".

2013 Feb 04
3
Wicked pdf
...bundle/ruby/1.9.1/bin/wkhtmltopdf" -q "file:///tmp/wicked_pdf_9892_0.html" "/tmp/wicked_pdf_generated_file_9892_0.pdf" Error: PDF could not be generated! from /var/www/apps/staging/shared/bundle/ruby/1.9.1/gems/wicked_pdf-0.9.0/lib/wicked_pdf.rb:48:in `rescue in pdf_from_string'' from /var/www/apps/staging/shared/bundle/ruby/1.9.1/gems/wicked_pdf-0.9.0/lib/wicked_pdf.rb:32:in `pdf_from_string'' from /var/www/apps/staging/releases/20130204111108/app/models/message.rb:36:in `create_test_pdf'' from (irb):3 from /var/www/apps/staging/shared/bun...
2008 Dec 16
3
Princely Plugin: get nil.size error
Hi All, I want to generate pdf with css. I am using princely plugin. This is code which I written def pdf prince = Prince.new() html_string = render_to_string(:template => ''/users/paid_invoice.pdf.erb'') send_data( prince.pdf_from_string(html_string), :filename => ''some_document.pdf'', :type => ''application/pdf'' ) end But I am getting error of nil.size You have a nil object when you didn''t expect it! You might have expected an instance of Array. The error occurred...
2010 Jun 03
1
need to save generated pdf in public folder
...oftware to my rails application i have generated pdf file successfully using the following code princely = Princely.new() html_string = render_to_string(:template => ''test_methods/ visual_test/generate_report.rhtml'', :layout=> false) send_data( princely.pdf_from_string(html_string), :filename => ''visual_test'', :type => ''application/pdf'' ) now i want to need save the pdf file in my public folder, i have tried so many types but till now im not getting any result please help me thanks in advance Rat...
2013 Jan 25
4
store pdf directly to amazon
Hello Everyone, I am using wicked pdf and rails 3.2.8. I can generate pdf (html to pdf). How can i store my pdf file into amazon s3 without storing in *Local.* * * *Please help* -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to
2013 Jan 31
1
WickedPdf error in production
Hello everyone, I am using rails -v 3.2.8. I am using wickedpdf to generate pdf. Its working well in my local machine. But its not working in production server. ompleted 500 Internal Server Error in 4443ms RuntimeError (Failed to execute: "/var/www/apps/staging/shared/bundle/ruby/1.9.1/bin/wkhtmltopdf" -q "file:///tmp/wicked_pdf_5855_0.html"