respond_to do |format|
format.html
format.pdf do
grover = Grover.new('http://localhost:3000/generate_report', format: 'A4')
pdf = grover.to_pdf
File.open(Rails.root.join('report.pdf'),'wb', encoding: 'ascii-8bit') { |f| f.write(pdf)}
end
end
I need to convert my html page to pdf. But i get a "schmooze process fail" and the system hangs when it does grover.to_pdf. It works well on terminal but not in my rails project.