forrest-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ross Gardler <>
Subject Re: ugly tables in PDF files
Date Thu, 04 Aug 2005 23:42:54 GMT
vadim wrote:
> Do you think it would good idea to introduce an attribute to <th>
> element, whose value will indicate width of the column, for example, in
> percent from the total width?

My own view on this is that since Forrest is intended to provide output 
in many different output formats a width attribute is a dangerous thing. 
When it translates to, for example, a small screen it can make a table 
look awful (not that they look good with the current solution).

I would rather see output stylesheets optimising the use of the page 
accoring to the output medium. This means improving on the existing 
calculation algorithm.

Other devs may not agree though, they may say "but a width attribute is 
vey quick and very easy, and an output plugin could choose to ignore it 
if it wanted to".

What do people think?


> Best regards, vadim tarassov.
> On Thu, 2005-08-04 at 23:16 +0100, Ross Gardler wrote:
>>Neil Troy wrote:
>>>vadim wrote:
>>>>Hallo everybody,
>>>>Do you know what is the reason to generate tables in PDF files of fixed
>>>>width and fixed (probably hardcoded) column width? Tables look really
>>>>ugly! Do you know if I can adjust something somewhere to get tables in
>>>>PDF files to look better?
>>FOP (or FO rendering engine) does not support tables that auto size. see 
>>>I needed to fix some tables quick.  
>>Professional patches welcome ;-)
>>You could count the chars in a all the cells then allocate the space 
>>accordingly. This would work better but would have problems with tables 
>>that involved images.
>>See the files in FORREST_HOME/main/skins/common/xslt/fo/

View raw message