xmlgraphics-fop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Torben Nielsen" ...@pine.dk>
Subject problem with scaling and fo:external-graphic
Date Wed, 31 Jan 2001 09:41:46 GMT
Hi All

I have a queation regarding the use of scaling fo:external-graphic !

No matter the size of the image I want it to be displayed no larger than the 
size of the blok-container.

I have tryed using stuft like : (content-height="scale-to-fit" content-width="scale-to-fit"
scaling="uniform" scaling-method="auto)

What am I doing wrong ???

Thanks in advanced

Torben Nielsen , Pine Tree DK
------------------------------------
Part of the code in XSL
-----------------------------------
<fo:flow flow-name="xsl-region-body">
    <fo:block-container height="9cm" width="15cm" top="0cm" left="0cm" position="absolute"
                        border-style="solid" border-color="black" border-width="2.5pt">
        <fo:block font-size="18pt" font-family="sans-serif" line-height="24pt"
                  text-align="center">
            <fo:external-graphic  src="file:{MOSAIC/IMAGE/IMAGEFILE}"/>
        </fo:block>
    </fo:block-container>

    <fo:block font-size="9.5pt" text-align="start" space-before.optimum="10cm">
        <xsl:apply-templates select="MOSAIC/IMAGE"/>
    </fo:block>
</fo:flow>



Mime
View raw message