search for: from_java_byt

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

Did you mean: from_java_bytes
2008 Jul 14
0
How to Send Itext Generated PDF to Browser?
...g only ruby / on rails. I would like to do precisely this in ROR and I can get to the second last line of the above blog (that is I can generate the document and even the toByteArray or byte[] ). As in the example: document.close // <<<--- I can get this document send_data String.from_java_bytes(m.toByteArray), :type=> "application/pdf", :dispostion=>"inline" // I can call the toByteArray and get the array of bytes byte[] but I dont know how to send_data to the browser with the document and byetarraystream available. I try to do a byte[].toString() an...
2008 Jul 05
18
Java Bridge Itext Example Anyone?
I MAY be able to derive something out of the present example given here : http://blog.codeinmotion.com/index.php/2006/12/22/pdf-generation-in-ruby-on-rails/ but this deals with filling out forms. Is there a simpler example that just allows you to talk to itext , send it some plain text and get back a pdf and then send that pdf to the user as downloadable / renderable data? -- Posted via
2008 Jan 26
0
JRuby version of win32-api - initial try
...'I'', ''B'' rv = @func.invokeInt(args) when ''V'' rv = nil else rv = 0 end args = args.map{ |e| if e.respond_to?(:array) e = String.from_java_bytes(e.array) else e end } rv end end end if $0 == __FILE__ include Win32 GetCurrentDirectoryA = API.new(''GetCurrentDirectoryA'', ''LP'', ''L'', ''kernel32'&...