[prev in list] [next in list] [prev in thread] [next in thread] 

List:       fop-user
Subject:    RE: background-image oversized
From:       Tobias.Soloschenko () TIMETOACT ! DE
Date:       2006-10-26 11:13:58
Message-ID: OFB2A75DF5.6246C34C-ONC1257213.003DA4DF-C1257213.003D8F9F () TIMETOACT ! DE
[Download RAW message or body]

--=_alternative 003D8F9CC1257213_Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable

Okay :) - I thought it was my fault! Then I have to shrink it. 

Thanks

"Pascal Sancho" <pascal.sancho@takoma.fr> wrote on 25.10.2006 14:56:59:

> Tobias,
> 
> > -----Original Message-----
> > From: Tobias.Soloschenko@TIMETOACT.DE 
> > [mailto:Tobias.Soloschenko@TIMETOACT.DE] 
> > 
> > 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: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
> 

--=_alternative 003D8F9CC1257213_Content-Type: text/html; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable


<br><font size=2 face="sans-serif">Okay :) - I thought it was my fault!
Then I have to shrink it. </font>
<br>
<br><font size=2 face="sans-serif">Thanks</font>
<br>
<br><tt><font size=2>&quot;Pascal Sancho&quot; &lt;pascal.sancho@takoma.fr&gt;
wrote on 25.10.2006 14:56:59:<br>
<br>
&gt; Tobias,<br>
&gt; <br>
&gt; &gt; -----Original Message-----<br>
&gt; &gt; From: Tobias.Soloschenko@TIMETOACT.DE <br>
&gt; &gt; [mailto:Tobias.Soloschenko@TIMETOACT.DE] <br>
&gt; &gt; <br>
&gt; &gt; Hello, <br>
&gt; &gt; <br>
&gt; &gt; I want to set a background-image in the region-before. The <br>
&gt; &gt; image is a gif, 26,42 in width, 3,88 in height and 72 dpi. <br>
&gt; <br>
&gt; According this, your image is a 1902x279 bitmap<br>
&gt; <br>
&gt; &gt; I know that the useragent uses a dpi of 72 as default value.
<br>
&gt; &gt; When I render the pdf the image is bigger than the content. <br>
&gt; &gt; I thought that it would fit with that size?! <br>
&gt; &gt; <br>
&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &lt;fo:layout-master-set&gt; <br>
&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;fo:simple-page-master
<br>
&gt; &gt; margin=&quot;10mm 10mm 10mm 20mm&quot; page-height=&quot;297mm&quot;
<br>
&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
page-width=&quot;210mm&quot; <br>
&gt; &gt; master-name=&quot;A4Page&quot;&gt; <br>
&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&lt;fo:region-before <br>
&gt; &gt; background-image=&quot;url('C:\\...\headpicture.gif')&quot; <br>
&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; <br>
&gt; &gt; background-repeat=&quot;no-repeat&quot; extent=&quot;38mm&quot;
/&gt; <br>
&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&lt;fo:region-body <br>
&gt; &gt; margin-top=&quot;39mm&quot;/&gt; <br>
&gt; <br>
&gt; Acording this, your available area is:<br>
&gt; 210-(10+20) x 38 mm˛<br>
&gt; = 180x38mm˛<br>
&gt; = 510x108 in 72dpi<br>
&gt; <br>
&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/fo:simple-page-master&gt;
<br>
&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &lt;/fo:layout-master-set&gt; <br>
&gt; &gt; <br>
&gt; &gt; There are no compilation errors. I'm using FOP 0.92 beta. <br>
&gt; <br>
&gt; If your image looks gigger than available area, this is normal.<br>
&gt; <br>
&gt; &gt; best regards <br>
&gt; &gt; Tobias<br>
&gt; <br>
&gt; To make your background-image, you can, either:<br>
&gt; - shrink your image;<br>
&gt; - or put it in a fo:block-container in absolute position<br>
&gt; - or play with default resolution (I didn't try this yet)<br>
&gt; <br>
&gt; HTH,<br>
&gt; <br>
&gt; Pascal<br>
&gt; <br>
&gt; ---------------------------------------------------------------------<br>
&gt; To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org<br>
&gt; For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org<br>
&gt; <br>
</font></tt>
--=_alternative 003D8F9CC1257213_=--
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic