Hey guys I know that this is a little obscure, but I'm using fop xsl-fo to build pdfs and I'm having a problem rendering some cgm graphics. I'm using a plugin called "jcgm" to render the cgms, so I'm assuming these graphics are just not supported by the library. Do you guys know of a solution to this? Or maybe another plugin I could use with fop? Also, would it be possible to write some java code of my own to get the job done? Any suggestions for a solution would be appreciated, thanks.
-Dave
I would like to suggest 2 things to sort this out.
cgmgraphics are not natively supported by FOP. There isjcgm, but it has its limitations - and it turns out its not easy to find out what exactly the limitations are for a givencgm(see: http://jcgm.sourceforge.net/features.html).cgmgraphics. How about converting thecgmparts beforehand? There seem to be a bunch of converters available (e.g. http://www.cgmlarson.com/convert_CGM_files_to_image_formats_aerospace.html - without having a closer look, just took the first one I found) to do away withcgmalltogether.Especially if you are using
XSLTto produce theXSL-FOin the first place, those stylesheets is where you would convert graphics to a more acceptable format.