search for: make_pdf

Displaying 3 results from an estimated 3 matches for "make_pdf".

2008 Sep 08
2
Problems with async worker request
...Backgroundrb to handle asynchronous pdf creation, but in doing so, I''ve run into a very strange problem. Below is a method that''s called from the controller which creates a new worker, then grabs the worker and calls the ''build_pdf'' method asynchronously. def make_pdf(template_path, worker_key) with_empty_asset_id do html_string = render_to_string(:template => template_path, :layout => ''pdf'') key = MiddleMan.new_worker(:worker => :prince_xml_worker, :worker_key => worker_key) MiddleMan.worker(:prince_xml_worker...
2012 Sep 11
10
wickedpdf
...Location of wkhtmltopdf unknown and i also get Bad wkhtmltopdf''s path gpa/vendor/plugins/wicked_pdf/lib/wicked_pdf.rb:26:in `initialize'' /EDWARD/_gpa/vendor/plugins/wicked_pdf/lib/pdf_helper.rb:53:in `new'' /EDWARD/gpa/vendor/plugins/wicked_pdf/lib/pdf_helper.rb:53:in `make_pdf'' /EDWARD/gpa/vendor/plugins/wicked_pdf/lib/pdf_helper.rb:65:in `make_and_send_pdf'' /EDWARD/gpa/vendor/plugins/wicked_pdf/lib/pdf_helper.rb:17:in `render'' /EDWARD/gpa/app/controllers/application_controller.rb:292:in `render'' /EDWARD/gpa/app/controllers/student_con...
2012 Feb 03
2
PDF and Ruby on Rails
...e out. The problem is like: What problems can arise when users hits the get_pdf action? If there are problems, how can it be solved? class PdfController < ApplicationController def get_pdf send_data Pdf.create(params[:contents]) end end class Pdf def self.create(contents) make_pdf(contents) # takes 30 seconds to run end end -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@publ...