[reportlab-users] Table column width - problem with >2 cols

Robin Becker robin at reportlab.com
Fri Jan 26 06:34:49 EST 2007


Juha Tuomala wrote:

>

> On Friday 26 January 2007 12:24, Juha Tuomala wrote:

>> Any idea what defines the table column

>> widths?

>>

>> If I put only plain text into cells,

>> columnWidth=None works fine. But if

>> the content contains Paragraph flowables,

>> the first two columns consume the page

>> 'availableWidth' and if there is more

>> than two columns, those go out of the

>> page borders.

>

>> Could this be a bug or have I missed

>> something cruicial?

>

> This seems to be a bug, since I encountered

> this problem when using the Praragraph

> class from para.py, but if I used the

> one in stable paragraph.py, the tables

> get column dimensions correctly.

>

> The problem is that old Paragraph flowable

> doesn't support <a> tags which I definately

> need (among other improved features).

>

> BR

>

> Tuju

>

unfortunately paragraph supports
<link> tags </link>

link attributes
fontName
fontSize
textColor
backColor
href

The href can be a URI or can have a special scheme

document: is a link to the current document
pdf: is a link to another pdf document.

Whether it's correct to use html element names in PDF is another matter. The
a(anchor) tag has two meanings link and target; I suppose if people wanted it we
could actually have a as an alias for link.

--
Robin Becker


More information about the reportlab-users mailing list