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:page-sequence ...>
        <fo:flow ...>
                <fo:external-graphic src="url(embedded.gif)" 
width="120px" height="120px" content-width="120px" content-height="120px"/>

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"
        <a xlink:href="#svgView(viewBox(0, 0.0, 595, 842))" 
           xlink:actuate="onRequest" xlink:show="replace"
            <rect width="297.0" x="0.0" height="842.0" y="0.0"

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 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

View raw message