xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arturo Perez" <ape...@hayesinc.com>
Subject Problem using svg image on both fop.0.20 and fop.0.92beta
Date Fri, 05 May 2006 15:12:53 GMT
Hi all,

I'm having problems with graphics in fop.0.20.5 (my production site) and fop.0.92.beta (my
soon-to-be site).  The PDF ends up with no image in both versions.  I think the problem with
0.20.5 is that it doesn't support data URLs.  The .fo fragment looks like this:

<svg:svg xmlns:svg="http://www.w3.org/2000/svg" width="390" height="186">
<svg:title>Figure 1. XYZ </svg:title>
<svg:image xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="data:image/gif;base64,R0lGODlhhgG6ALMPAO3t87K..."
width="390" height="186"/>

On 0.20 I get no errors but the PDF just has a broken image graphic.
On 0.92 I get no image whatsoever and the below error.  It's blank where the image should
be and the gap looks to be the correct size. 

Any help would be greatly appreciated, tia.

SEVERE: svg graphic could not be built: file:/.../fop-0.92beta/play/:-1
The attribute "width" of the element <image> is required
org.apache.batik.bridge.BridgeException: file:/.../fop-0.92beta/play/:-1
The attribute "width" of the element <image> is required
        at org.apache.batik.bridge.SVGImageElementBridge.getImageBounds(Unknown Source)
        at org.apache.batik.bridge.SVGImageElementBridge.createImageGraphicsNode (Unknown
        at org.apache.fop.svg.PDFImageElementBridge.superCreateGraphicsNode(PDFImageElementBridge.java:107)
        at org.apache.fop.svg.PDFImageElementBridge.createImageGraphicsNode(PDFI...

View raw message