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