This is quickly becoming an FAQ. Someone needs to put that on our
website. Grmbl.

Short: FOP 0.20.5 was wrong. FOP 0.92beta is right. To get the same
behaviour as in FOP 0.20.5, add content-height="scale-to-fit" and
content-width="scale-to-fit". For all the details, please see the XSL-FO
specification. See also examples/fo/images.fo for examples of different
property combinations.

On 27.04.2006 16:51:08 news wrote:
> Hello List,
> 
> I tried to move from FOP 0.25 to 0.92 beta testwise. I'm using table-cell in
> wich I display external graphics. In this case I'm using a PNG grafic. 
> 
>       <fo:table-cell border="0.5pt solid black">
>         <fo:block margin="1mm" text-align="center">
>           <xsl:variable name="docfile">
>             <xsl:text>file:/</xsl:text>
>             <xsl:value-of select="translate(DOCPATH, '\', '/')"/>
>             <xsl:value-of select="DOCFILENAME"/>
>           </xsl:variable>
>           <fo:external-graphic src="{$docfile}" height="10cm"/>
>         </fo:block>
>       </fo:table-cell>
> 
> In this case I scale the picture to a height of 10cm. This always worked
> fine for me with FOP 0.25.
> With FOP 092 beta the Picture is not scaled down. But with an somehow
> strange behaviour. The table-cell itself is only 10cm height. But the
> picture "flows" over the cells border into the rest of the table having its
> original size. I've got the "jai_codec.jar" and "jai_core.jar" in the lib
> folder and FOPs classpath. But I does'nt make any difference if I remove
> them.
> 
> Is this behaviour correct?
> 
> with best regards,
> Jan


Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to