xmlgraphics-fop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas L Delmelle <a_l.delme...@pandora.be>
Subject Re: Suppress RTF ExternalGraphicException
Date Mon, 20 Mar 2006 18:36:50 GMT
On Mar 20, 2006, at 19:17, b.ohnsorg@freenet.de wrote:

> Von: "Andreas L Delmelle"<a_l.delmelle@pandora.be>
>> On Mar 17, 2006, at 20:12, Will Peterson wrote:
>> Hi Will,
>>> Is there a way to suppress the ExternalGraphicException text that
>>> renders inside an RTF document?  Such that the document would be
>>> rendered but exclude the text:
>>> "org.apache.fop.render.rtf.rtflib.rtfdoc.RtfExternalGraphic
>>> $ExternalGraphicException: The tag <fo:external-graphic> does not
>>> support gif - image type." (as well as the GIF image, of course)
>> I'm afraid it's hard-coded, but if you don't mind altering the class
>> itself, and then rebuild FOP, easy.
>> Just change the class in question's writeRtfContent() method, and
>> make that catch block a NOP. Should work nicely.
> But where's the error message? RTF-output does not produce any  
> errors, that it's not able to insert the image...the better way  
> would be, to transform all the GIFs to PNGs. I use docbook to  
> create documents, so there's no need for me to write XSL-FO (it's  
> also easy to include into any Java-application, just use the  
> docbook-stylesheets and DTDs) AND it's possible to specify  
> different media types for different rendering systems (GIF for  
> HTML, PNG for FO or RTF-FO). So you see the image, too

Hey, if you wanna have a go at converting GIFs to PNGs on-the-fly,  
then by all means, go ahead. The community will be grateful. :)

The OP asked how he could turn it off, hence my answer.



View raw message