[reportlab-users] Table margin

Robin Becker robin at reportlab.com
Fri May 27 05:48:56 EDT 2011


On 27/05/2011 10:42, Arkadi Colson wrote:

> It seems rule 3 also resets the Indent value for mytable. Is it possible to set

> the Indent value for each flowable individually?

>

> story.append(Indenter(left=-2.5))

> story.append(mytable)

> story.append(Indenter(left=2.5))

>

>

> On 05/27/2011 10:47 AM, Robin Becker wrote:

>> On 27/05/2011 09:21, Arkadi Colson wrote:

>>> Hi

>>>

>>> Is it possible to set the left margin to a table? When using the hAlign='LEFT'

>>> property, the table has a small left-margin. I would like to set it to zero.

>>> Anybody knows how to do it?

>>>

>>> Thanks!

>>>

>> There's an Indenter flowable object which you can put in the story. It's in

>> doctemplate so you can do the following

>>

>> from reportlab.platypus.doctemplate import Indenter

>>

>> story.append(Indenter(left=12))

>> story.append(mytable)

>> story.append(Indenter(left=-12))

>>

>


It's not clear exatly what margin you're talking about. Frames have padding as
well so if that;s what yopu're concerned about then ensure that your frames have
zero padding instead of using the above indenter stuff.
--
Robin Becker


More information about the reportlab-users mailing list