How to prevent word wrapping in table cells (PDF)?

Author Message

Michael D.

Wednesday 05 January 2005 2:40:19 am

I wonder if is possible to tell ez publish not to wrap columns in tables for pdf files.

I'm trying this with ez publish 3.5 - beta with no luck so far.
I haven't found any documented parameters or functions to accomplish this but maybe someone has already found a workaround for it.

Thanks in advance.

Kåre Køhler Høvik

Wednesday 05 January 2005 5:43:10 am

Hi

PDF table wrapping was improved during the 3.5 cycle. Don't know if your version was the imporoved or not.

You can try to use the width parameter for PDF tables to force table witdh : http://www.ez.no/ez_publish/documentation/reference/template_operators/pdf/table

Kåre Høvik

Michael D.

Wednesday 05 January 2005 7:41:47 am

Hi and thanks for the quick reply.

I'm already using a width for this table and I even tried using
'options' => array( "mycolumn"=>array('width'=>100) )
but I was unsure where to set the columnname and besides, it resulted in the table not being rendered at all.

The workaround I'm using now is to reduce the font size for the table cells and keep the table headers as large as before. It works but I don't feel too well with this solution.

The problem is that there are table columns that can contain a lot of text and thus steal width from other columns. One column contains item codes and these were wrapped even though they're consecutive digits and characters without any spaces in-between.

Maybe I'll try an upgrade to 3.5 stable which hopefully solves this problem.
But maybe someone has another idea how to solve this.

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 19 2025 00:15:21
Script start
Timing: Jan 19 2025 00:15:21
Module start 'layout'
Timing: Jan 19 2025 00:15:21
Module start 'content'
Timing: Jan 19 2025 00:15:22
Module end 'content'
Timing: Jan 19 2025 00:15:22
Script end

Main resources:

Total runtime0.6759 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 588.0469152.6406
Module start 'layout' 0.00520.0035 740.687539.4922
Module start 'content' 0.00870.6658 780.1797532.7109
Module end 'content' 0.67440.0015 1,312.890612.1250
Script end 0.6759  1,325.0156 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.5111160.0002
Check MTime0.00140.2071160.0001
Mysql Total
Database connection0.00070.097810.0007
Mysqli_queries0.629793.1643570.0110
Looping result0.00060.0835550.0000
Template Total0.645395.520.3227
Template load0.00190.287920.0010
Template processing0.643395.178020.3217
Template load and register function0.00020.027210.0002
states
state_id_array0.00130.197310.0013
state_identifier_array0.00130.187020.0006
Override
Cache load0.00160.2349210.0001
Sytem overhead
Fetch class attribute can translate value0.00090.126920.0004
Fetch class attribute name0.00120.180040.0003
XML
Image XML parsing0.00070.108520.0004
class_abstraction
Instantiating content class attribute0.00000.001540.0000
General
dbfile0.00090.1307150.0001
String conversion0.00000.000740.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs