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.