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 Fri, 17 Mar 2006 19:25:48 GMT

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.



View raw message