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.

eZ debug

Timing: Jan 18 2025 19:27:07
Script start
Timing: Jan 18 2025 19:27:07
Module start 'layout'
Timing: Jan 18 2025 19:27:07
Module start 'content'
Timing: Jan 18 2025 19:27:08
Module end 'content'
Timing: Jan 18 2025 19:27:08
Script end

Main resources:

Total runtime0.6796 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 589.1484152.6406
Module start 'layout' 0.00540.0032 741.789139.4766
Module start 'content' 0.00860.6696 781.2656431.9766
Module end 'content' 0.67820.0014 1,213.24228.1406
Script end 0.6795  1,221.3828 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.5395160.0002
Check MTime0.00150.2141160.0001
Mysql Total
Database connection0.00090.132410.0009
Mysqli_queries0.633693.2317520.0122
Looping result0.00050.0743500.0000
Template Total0.654296.320.3271
Template load0.00260.379420.0013
Template processing0.651795.891320.3258
Template load and register function0.00010.018210.0001
states
state_id_array0.00040.054010.0004
state_identifier_array0.00090.136520.0005
Override
Cache load0.00210.3163240.0001
Sytem overhead
Fetch class attribute can translate value0.00070.109910.0007
Fetch class attribute name0.00140.201720.0007
XML
Image XML parsing0.00010.019410.0001
class_abstraction
Instantiating content class attribute0.00000.000920.0000
General
dbfile0.00070.0993100.0001
String conversion0.00000.001340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 18
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs