xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Noll <dan...@nuix.com.au>
Subject FO + External bitmap graphics -> FOP -> SVG
Date Tue, 03 May 2005 03:40:11 GMT
I have the following FO code (reduced to fit well in the email):

<fo:root ...>
    <fo:layout-master-set>
        ...
    </fo:layout-master-set>
    <fo:page-sequence ...>
        <fo:flow ...>
            <fo:block>
                <fo:external-graphic src="url(embedded.gif)" 
width="120px" height="120px" content-width="120px" content-height="120px"/>
            </fo:block>
        </fo:flow>
    </fo:page-sequence>
</fo:root>

When I use FOP to convert this to a PDF, it works perfectly.  But when I 
use the same files and convert it to an SVG, the image is missing.

On inspection of the SVG file:

<svg ...>
    <g ...>
        <rect width="595.0" x="0.0" height="842.0" y="0.0"
              style="fill:none;stroke:black"/>
        <a xlink:href="#svgView(viewBox(0, 0.0, 595, 842))" 
xlink:type="simple"
           xlink:actuate="onRequest" xlink:show="replace"
           xmlns:xlink="http://www.w3.org/1999/xlink">
            <rect width="297.0" x="0.0" height="842.0" y="0.0"
                  style="fill:blue;visibility:hidden"/>
        </a>
    </g>
</svg>

As you can probably see, the image isn't actually linked in the SVG file 
at all, but replaced with some invisible blue block.

Am I doing something wrong?  This particular image is in GIF format, if 
that matters.

Daniel


-- 
Daniel Noll

NUIX Pty Ltd
Level 8, 143 York Street, Sydney 2000
Phone: (02) 9283 9010
Fax:   (02) 9283 9020

This message is intended only for the named recipient. If you are not
the intended recipient you are notified that disclosing, copying,
distributing or taking any action in reliance on the contents of this
message or attachment is strictly prohibited.


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Mime
View raw message