Hi; Can you point me to an example of "rendering to Java2D"? The single AWT example coming with FOP is one that outputs to screen and it seems that it does that behind the sceene when receiving SAX endDocument I guess.
Alternatively whould I use AWT preview mime type, to an output stream and pipe that to ImageIO? How can I do that? Should I use such techniques as those presented at: http://ostermiller.org/convert_java_outputstream_inputstream.html or is it a more direct and natural way to it without inverting control? Thank you, Nicu -----Original Message----- From: Andreas Delmelle [mailto:[email protected]] Sent: Friday, June 05, 2009 12:26 PM To: [email protected] Subject: Re: question On 05 Jun 2009, at 11:10, Nicolae Marasoiu wrote: Hi > How can I use ImageIO from FOP ? ImageIO is used automatically (if available), but this applies more to images inserted into the FO, not to the output targets. > I saw no MimeConstant to suggest outputing an Image supported by > imageio. The end result would be a transparency enabled GIF, since the > transparent PNG succesfully generated with fop 0.95 is not fully > supported by IE6 and I would try a hackless GIF solution right now. GIF output is, strictly speaking, not supported. As image formats, FOP only offers TIFF or PNG out-of-the-box. (see: http://xmlgraphics.apache.org/fop/0.95/output.html) That said, I guess one possibility would be to render the result to Java2D, and then take care of the conversion to GIF yourself, using ImageIO or whatever library you want. Regards Andreas --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
