[reportlab-users] SimpleDocTemplate Margin Problems
Robin Becker
robin at reportlab.com
Wed Jun 24 05:36:13 EDT 2009
Lucas Howell wrote:
> Hi All,
>
> I'm having a problem when using the SimpleDocTemplate with Paragraphs
> that cause an unpredictable margin.
>
> Basically I specify a margin of 0.5 inches in the Template and it
> works just fine when Table Flowables are added to the Story, but when
> I add Paragraphs (with leftIndent=0 specified) the margin is like 0.6
> inches or more. Thus my various flowables don't line up on page
> (paragraphs have some extra mysterious indentation). There's got to
> be some extra padding or something in the SimpleDocTemplate or
> Paragraphs that I don't know about, but everything is zeroed out, so
> it doesn't make sense.
>
> Some example code is below:
.......
There should be no difference between paragraphs and left aligned tables. What's
wrong is that frames have a default padding of 6pts. To fix that set the frame
padding to 0 in your first page routine. For simplicity the SimpleDoctemplate
class dosn't really give you much control of the page templates.
--
Robin Becker
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: tt.py
Url: <http://two.pairlist.net/pipermail/reportlab-users/attachments/20090624/cb4b6d26/attachment-0001.ksh>
More information about the reportlab-users
mailing list