Thank's a lot Jeremias!!

It happens verry nice ;-)

Regards
patrick

-----Urspr�ngliche Nachricht-----
Von: Jeremias Maerki [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 7. M�rz 2003 14:17
An: [EMAIL PROTECTED]
Betreff: Re: Backgroundimage & Image scaling

Hi

On 07.03.2003 08:14:51 patrick-peter.mannhart wrote:
> Hi
> 
> In my xsl-file, I want to print a background-image in a cell.
> When the cell is empty (whitout a text) the image isn't visible in the
> PDF-File!
> How can I attempt, that the image is allways visible?

You need to put the background-image on the table-cell, not on the
block.
The height of an empty block is zero, so there's no room to paint an
image or background. The table-cell however has a defined height.

> 
> the script looks like this:
> 
> <fo:table table-layout="fixed" padding-top="0.3cm">
>     <fo:table-column column-width="4.6cm"/>
>         <fo:table-column column-width="0.4cm"/>
>           <fo:table-column column-width="1cm"/>
>           <fo:table-column column-width="8.2cm"/>
>           <fo:table-body>
>           <fo:table-row>
>               <fo:table-cell number-rows-spanned="4">
>                   <fo:block font-size="12pt"
>                             font-family="Ftb_____"
>                             font-weight="bold"
>                             font-style="regular"
>                             color="gray"
>                             text-align="left">Basierend auf
SLA-Nr:
>                   </fo:block>
>               </fo:table-cell>
>               <fo:table-cell>
>                   <fo:block font-size="12pt"
>                             font-family="Ftb_____"
>                             font-weight="light"
>                             font-style="regular"
>                             padding-top="0cm"
>                             text-align="center"
>                             <!-- no-repeat option doesen't help -->
>                             background-image="slm/images/box.gif"/>
>                                 <xsl:value-of select="slaBody184"/>
>                   </fo:block>
>               </fo:table-cell>
>               ...
> 
> Why <fo:external-graphic content-hight="110%" scaling="uniform"
> src="myGrafic.gif"
>      ...
> 
> doesen't happen??

Because the content-height property isn't implemented, yet, as far as I
can see. Have a look at the log output from FOP. It tells you that
"110%"
cannot be converted. You could try to use width and height instead.

> Why the background-image change his size in the cell, when I change
the font-size??

I can't reproduce that one.

I've attached a little testcase showing all the points you raised. I
hope that helps understanding. Maybe you can modify the testcase in a
way that it shows your last point.

I hope this helps.

Jeremias Maerki


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

Reply via email to