Tom
A couple of things:
1. check the FO output to see what that area looks like. With the example I
used, here is the output:
<fo:block id="id522069" text-align="center">
<fo:external-graphic src="url(images/basicFlow.svg)"
width="5in" height="auto"
content-width="scale-to-fit"
content-height="scale-to-fit"
content-type="content-type:image/svg+xml"
text-align="center"/>
</fo:block>
Make sure the image/svg+xml shows up.
2. Try adding the 'format="SVG" ' to the imagedata line
<imagedata align="center" fileref="basicFlow.svg" width="5in"
format="SVG" />
Dean
Dean
In a message dated 12/02/10 12:14:55 Pacific Standard Time,
[email protected] writes:
On Thu, Dec 2, 2010 at 14:09, deannelson <[email protected]> wrote:
> Tom
> What actual problem are you having?
Dean, I'm using db 5 and fop 1.0 on Ubuntu and get the following error:
Dec 2, 2010 2:05:08 PM org.apache.fop.events.LoggingEventListener processEvent
SEVERE: Image not available. URI: ./images/era-1.svg. Reason:
org.apache.xmlgraphics.image.loader.ImageException: The file format is
not supported. No ImagePreloader found for ./images/era-1.svg (See
position 25375:172)
Dec 2, 2010 2:05:08 PM org.apache.fop.events.LoggingEventListener processEvent
SEVERE: Image not found. URI: ./images/era-1.svg. (No context info available)
My docbook code looks pretty much like that that has been shown here.
Here's my db source for the problem figure:
<figure id="era-1">
<title>A section of a typical Explosive Reactive Armor (ERA) device</title>
<mediaobject>
<imageobject role='html'>
<imagedata
align='center'
width='5.5in' scalefit='1'
fileref="./images/era-1-96dpi.png"
/><!-- was: width='100%' -->
</imageobject>
<imageobject role='fo'>
<imagedata
align='center'
width='5.5in' scalefit='1'
fileref="./images/era-1.svg"
/>
</imageobject>
</mediaobject>
</figure>
Thanks.
-Tom