Pedro,
There is no direct solution. But you can use encoded binary image loading
feature in couple of not complicated steps:
Step 1. Make your image to binary ready stream, then encode it by using base64,
I used commons-codec-1.3.jar, then make it ready for your FOP-XSL to reference;
Step 2. Use following to embed the image to PDF:
<fo:external-graphic src="{concat('url(', "'",
'data:image/auto;base64,', $embededLogo, "'", ')')}"
content-height="{$height}" content-width="{$width}"/>
$embededLogo is the local variable for the encoded image binary, then you are
ready to go!
Zemin
-----Original Message-----
From: pedro [mailto:[email protected]]
Sent: Tuesday, April 13, 2010 10:54 AM
To: [email protected]
Subject: Re: java.awt.image
I know, but i don't want to use a physical file but only one object that i
have in memory.
So i want to say if is possible to pass a java.awt.image or similar to the
xsl .
Thanks!
--
View this message in context:
http://old.nabble.com/java.awt.image-tp28229153p28231355.html
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
----------------------------------------------------------------------
This message and any attachments are intended only for the use of the addressee
and may contain information that is privileged and confidential. If the reader
of the message is not the intended recipient or an authorized representative of
the intended recipient, you are hereby notified that any dissemination of this
communication is strictly prohibited. If you have received this communication
in error, notify the sender immediately by return email and delete the message
and any attachments from your system.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]