> From: Jeremias Maerki <dev <at> jeremias-maerki.ch> > Subject: Re: Problem to align image and text in table. > Newsgroups: gmane.text.xml.fop.user > Date: 2006-04-10 08:01:20 GMT (2 days, 12 hours and 11 minutes ago) > > I can't reproduce the problem with any FOP version (0.20.5, 0.91beta, > Trunk). Please provide a complete, scaled-down FO file (not XSLT!) that > shows your problem. > > On 08.04.2006 17:49:45 Guillaume wrote: > > Hello, > > > > I have troubles trying to align an image and text in a table. > > When I use the following code : > > > > <fo:table-row> > > <fo:table-cell > > display-align="center" > > text-align="left"> > > <fo:block > > border="1pt" > > border-style="solid"> > > <fo:external-graphic > > src="<some image>" > > 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"> > > <xsl:text>Page </xsl:text> > > <fo:page-number/> > > </fo:block> > > </fo:table-cell> > > </fo:table-row> > > > > the table is displayed like this : > > > > ------------------------ > > | 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. > > > > I would be very grateful if so could help me. > > > > Many thanks in advance, > > Guillaume. > > Jeremias Maerki >
Hello, I'm using fop-0.91beta to generate pdf file. Following the fo source file. Thanks, Guillaume. ---------------------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"/> </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"> <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> ---------------------End fo code here------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
