Hi, I know how to get a .html file and writing contents into a file in the server. eg. doc = Nokogiri::HTML(open("http://projectmadurai.org").read) my_file = File.new("pm.html", "w") my_file.puts doc.inner_html my_file.close I want to download a .pdf file in a similar way. How can I achieve this? -- -- Nandri(Thanks in Tamil), Amala Singh -- 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@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.