Marc C. wrote in post #1061690: > Except one part: I don't know how to > render correctly the HTML in the PDF file. > > Currently I use the Prawn library to create the PDF's.
I use Prawn to generate pdf's, Nokogiri to parse the html portion and created an element_to_pdf method to walk the html, looking for tags to respond to, constructing the pdf.text statements to execute based on the tag encountered. Something like: doc = Nokogiri::HTML(text) children = doc.children[1].children[0].children # doc / html / body / elements children.each do |child| element_to_pdf pdf, child end or something like that... code isn't at hand -- 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@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.