How to change margins from page to page

Mike Driscoll <[email protected]>
Newsgroups gmane.comp.python.reportlab.user
Message-ID <CAO4gEAuUHjeyBX0-1Pr9dVKKTfxQHpYiRCYxk8Zoy4zAQyrfQA@mail.gmail.com>
Hi,

I have a case where the first page of a document has two inches worth of
fixed header information and another 4 inches of data on the bottom of the
document that is taken up with a check. The middle 3 or 4 inches on the
first page is for dynamic flowable stuff, like a table and some paragraphs.
The first page works great.

I am using a bottom margin of 4 inches for it. However, I don't need to
have a bottom margin on any pages past the first page. How do I change the
margins for the rest of the document?

I tried adding this to my later pages method:

doc.bottomMargin = 0.5 * inch

But that doesn't have any effect. I also saw this post from a few years ago:

http://two.pairlist.net/pipermail/reportlab-users/2011-November/010262.html

But I'm not using Frames. Does anyone have any insights? I am using a
SimpleDocTemplate. Thanks!

-------------------
Mike Driscoll

Blog:   http://blog.pythonlibrary.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.