Tobias,

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] 
> 
> Hello, 
> 
> I want to set a background-image in the region-before. The 
> image is a gif, 26,42 in width, 3,88 in height and 72 dpi. 

According this, your image is a 1902x279 bitmap

> I know that the useragent uses a dpi of 72 as default value. 
> When I render the pdf the image is bigger than the content. 
> I thought that it would fit with that size?! 
> 
>                         <fo:layout-master-set> 
>                                 <fo:simple-page-master 
> margin="10mm 10mm 10mm 20mm" page-height="297mm" 
>                                         page-width="210mm" 
> master-name="A4Page"> 
>                                         <fo:region-before 
> background-image="url('C:\\...\headpicture.gif')" 
>                                                 
> background-repeat="no-repeat" extent="38mm" /> 
>                                         <fo:region-body 
> margin-top="39mm"/> 

Acording this, your available area is:
210-(10+20) x 38 mm²
= 180x38mm²
= 510x108 in 72dpi

>                                 </fo:simple-page-master> 
>                         </fo:layout-master-set> 
> 
> There are no compilation errors. I'm using FOP 0.92 beta. 

If your image looks gigger than available area, this is normal.

> best regards 
> Tobias

To make your background-image, you can, either:
- shrink your image;
- or put it in a fo:block-container in absolute position
- or play with default resolution (I didn't try this yet)

HTH,

Pascal

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

Reply via email to