> -----Original Message-----
> From: Guillaume [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, April 12, 2006 10:21 PM

> > > I have troubles trying to align an image and text in a table.

> > >                   ------------------------
> > >                   |               Page 1 |
> > > ------------------------------------------
> > > | <some image>    |
> > > -------------------
> > > 
> > > But I want to display :
> > > 
> > > ------------------------------------------
> > > | <some image>    |               Page 1 |
> > > ------------------------------------------
> > > 
> > > I tried to put text instead of graphic, it's OK.
> > > But when it's the image, it's KO.

> ---------------------Start fo code 
> here------------------------- <?xml version="1.0" 
> encoding="iso-8859-1"?> <fo:root 
> xmlns:fo="http://www.w3.org/1999/XSL/Format";>
>    <fo:layout-master-set>
>       <fo:simple-page-master master-name="mainPages" 
> page-height="21cm"
> page-width="29.7cm" margin-top="1cm" margin-bottom="1cm" 
> margin-left="1cm"
> margin-right="1cm">
>          <fo:region-body margin="0cm"/>
>          <fo:region-after extent="10mm"/>

Region-after overlaps the region-body
Margin-bottom sould be >= extent.

>       </fo:simple-page-master>
>    </fo:layout-master-set>
>    <fo:page-sequence master-reference="mainPages">
>       <fo:static-content flow-name="xsl-region-after">
>          <fo:table border="0pt" inline-progression-dimension="100%"
> table-layout="fixed">
>             <fo:table-column 
> column-width="proportional-column-width(50)"/>
>             <fo:table-column 
> column-width="proportional-column-width(50)"/>
>             <fo:table-body>
>                <fo:table-row>
>                   <fo:table-cell display-align="center" 
> text-align="left">
>                      <fo:block border="1pt" border-style="solid">

2 remarks:
1- border should be set on fo:table-cell rather than fo:block, since
   block height fits to its content, and can be different from other
columns
2- both line-height and font-size sould be set to 0pt (someone in this
list explained
   that is a way to correctly align graphics in b-p-d)

>                         <fo:external-graphic src="someImage.jpg"
> scaling="uniform" content-height="1.5cm" display-align="center"/>
>                      </fo:block>
>                   </fo:table-cell>
>                   <fo:table-cell display-align="center" 
> text-align="right">
>                      <fo:block border="1pt" 
> border-style="solid">Page <fo:page-number/>
>                      </fo:block>
>                   </fo:table-cell>
>                </fo:table-row>
>             </fo:table-body>
>          </fo:table>
>       </fo:static-content>
>       <fo:flow flow-name="xsl-region-body" font-size="10pt" 
> font-family="Times"
> line-height="1.0">
>                   <fo:block break-before="page">Something 
> here</fo:block>
>       </fo:flow>
>    </fo:page-sequence>
> </fo:root>

Pascal

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

Reply via email to