I am looking at the following blog posting where someone is using jruby and iText to create a pdf file and then sending it to the browser : http://codersifu.blogspot.com/2007/06/howto-generate-pdf-files-in-ruby-on.html
I am using only ruby / on rails.
I would like to do precisely this in ROR and I can get to the second last line :
document.close <<<--- I can get this document and the m bytearraystream send_data String.from_java_bytes(m.toByteArray), :type=> "application/pdf", :dispostion=>"inline"
but I dont know how to send_data to the browser with the document and byetarraystream available.