Just wondering if a custom URI resolver would be a possible and most likely simple solution?
So you would use a normal external graphics tag but a custom scheme in the URI. <fo:external-graphic src="myscheme:....." /> You then set a custom JAXP URIREesolver on the FOP Factory (I think) which does the work your extension would do and provides image data as a stream. The image still would have to be in one of the formats fop recognizes natively though (JPEG, PNG, ...). Manuel -----Original Message----- From: Subrata Hazra [mailto:[email protected]] Sent: Wednesday, 27 May 2009 8:32 PM To: [email protected] Subject: Custom FOP Extension Can anybody help me with step-by-step guide for writing own FOP extension. I want to write some extension where fop will output an image parsing fo document like this <fo:block> <ns:img xmlns="some URI" width="100" height="100"> <ns:bar height="10">bar1</bar> <ns:bar height="10">bar2</bar> </ns:img> Internally I want to generate BufferedImage from Graphics2D then forward the same to FOP. -- View this message in context: http://www.nabble.com/Custom-FOP-Extension-tp23741578p23741578.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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
