Displaying 2 results from an estimated 2 matches for "byetarraystream".
2008 Jul 14
0
How to Send Itext Generated PDF to Browser?
...--- 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() and send that to send_data but when I
get byte[].toString() from the java classes I get an error :
No Class DefFoundError (org/bouncycastle/asn1/ASN1OctetString)
Where to go from here?
From the blog : Is there an equivalent to String.from_java_bytes in...
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