You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Torben Nielsen <tn...@pine.dk> on 2001/01/10 13:29:51 UTC

? on scaling, a bit better explained

Hi All
 
I was Asked to give an explaination.

I have a block-container in which I'm calling external-graphic. The borders of the container are fixed
so the image may have to be scaled to fit. This is done automatical.

Now after I have loaded the image, I had liked the scaling factor (in %) written underneath the image 
in the pdf file. (in flow-name="xsl-region-after" ) 

  
--
Torben Nielsen
Pine Tree Systems DK

************ Parts of the XSL file ************        
<fo:flow flow-name="xsl-region-body">
    <fo:block-container height="16cm" 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"
                 space-after.optimum="15pt" background-color="blue"
                  color="red" text-align="center">
            <fo:external-graphic  src="file:{DOC/FILE/@FIL}"/>
        </fo:block>
    </fo:block-container>
</fo:flow>