[reportlab-users] Table properties

Robin Becker reportlab-users@reportlab.com
Fri, 6 Sep 2002 19:51:37 +0100


In article <3D78CCB9.7040108@mpi-cbg.de>, Nathalie Mansouri
<mansouri@mpi-cbg.de> writes
>Hi,
>
>I wrote a script that upload csv files and take out all its columns and 
>rows and put them in the pdf using Table function, it works fine but I 
>want to ask you if the file is wide in size, is there a way to shrink 
>the table width?
>The code is:
>
>       f=open(file, 'r')
>
>       lines=f.readlines()
>
>       columns = []
>
>       for column in lines:
>
>           column = column.strip().split(',')
>
>           column = tuple(column)
>
>           columns.append(column)
>
>       t = Table(columns)
>
>       self.Elements.append(t)
>
.....
seems you should set up some table styles to change the default fontsize
that's being used. There are examples of TableStyle manipulation in the
platypus/tables.py file.
-- 
Robin Becker