francis Nart
|
Tuesday 25 July 2006 3:26:49 am
Unfortunately Kåre, alignment doesn't work using the following codes :
<tr>
<td align="center">{pdf( 'text', $text|wash( 'pdf' ) )}</td>
<td justification="center">{pdf( 'text', $text|wash( 'pdf' ) )}</td>
<td justification="center">{pdf( 'text', $text|wash( 'pdf' ),hash('align', 'center' ) )}</td>
</tr>
{pdf(table, $tableau, hash('showLines',2,
'firstRowTitle',1,
'titleCellCMYK',array( 0, 0, 0 ),
'titleTextCMYK',array(0.9,0.3,0,0.2),
'titleFontSize',8,
'cellCMYK',array( 0, 0, 0 ),
'textCMYK',array( 255, 255, 255 ),
'rowGap',4,
'colGap',4,
'cellPadding',0,
'width',435, 'repeatTableHeader',0) )} We also tried the "cellData" option which is used in "lib/ezpdf/classes/class.ezpdftable.php" but the aligment doesn't change either:
{pdf(table, $tableau, hash('cellData',array('0,0',array('justification',right)),
'showLines',2,
'firstRowTitle',1,
'titleCellCMYK',array( 0, 0, 0 ),
'titleTextCMYK',array(0.9,0.3,0,0.2),
'titleFontSize',8,
'cellCMYK',array( 0, 0, 0 ),
'textCMYK',array( 255, 255, 255 ),
'rowGap',4,
'colGap',4,
'cellPadding',0,
'width',435, 'repeatTableHeader',0) )} we're stuck with this !
|
Kåre Køhler Høvik
|
Tuesday 25 July 2006 4:01:00 am
Hi What about this:
{pdf(table, $tableau, hash('cellData',array('0,0',array('justification',right,
'showLines',2,
'firstRowTitle',1,
'titleCellCMYK',array( 0, 0, 0 ),
'titleTextCMYK',array(0.9,0.3,0,0.2),
'titleFontSize',8,
'cellCMYK',array( 0, 0, 0 ),
'textCMYK',array( 255, 255, 255 ),
'rowGap',4,
'colGap',4,
'cellPadding',0,
'width',435,
'repeatTableHeader',0) ) )}
Kåre Høvik
|