PDF - set font size and family in table

Author Message

fabian schoen

Monday 13 November 2006 12:32:45 pm

Hi

How can I change the font size and family in a <b>table</b>, produces via the template pdf function (
http://ez.no/doc/ez_publish/technical_manual/3_6/reference/template_pdf_functions/table ) ?

If I use <b>set_font</b> ( http://ez.no/doc/ez_publish/technical_manual/3_6/reference/template_pdf_functions/set_font
) then it will set the font settings for normal text in the pdf produced by <b>pdf { 'text'...</b> ( http://ez.no/doc/ez_publish/technical_manual/3_6/reference/template_pdf_functions/text ).
But how can I change the font, if I created a table:

{set-block variable=$tblDesc}
  <tr>
  	<td></td>
	<td>{attribute_pdf_gui attribute=$node.object.data_map.description}</td>
  </tr>
{/set-block}
 
{pdf(table, $tblDesc, hash('width',200,
		'showLines',0,
		'rowGap',2,
		'textCMYK',array(0.5,0.4,0.4,0),
 		'colGap',0,
		'cellPadding',0,
		'repeatTableHeader',1) )}		

The changes in <b>set_font</b> are ignored.

I also tried to you use <b>pdf { 'text'...</b> instead of "{attribute_pdf_gui ..." without any affect.

Is this a dummy PDF newbie question?

thanks
fabian

fabian schoen

Friday 17 November 2006 2:46:42 am

Hi

Sorry for pushing up this topic, but I guess either
- it is easy to do it and I made basic error
- or it is not possible.

Both choices should be easy to answer ;-)

Does nobody try to set the font in a "PDF table"?

regards
fabian

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.