What you want to do means that your document is no longer “simple”.
To achieve different page layouts you need to up two page templates that define the margins. That’s not hard:
FirstPageTextFrame = Frame( …dimensons… )
StatementFirstPage = PageTemplate (id='Page 1', frames=[FirstPageTextFrame], onPage=FirstPageStatic)
where FirstPageStatic is the function that sets up your fixed header and footer.
OtherPageTextFrame = Frame( …dimensons… )
StatementFirstPage = PageTemplate (id='Page N', frames=[OtherPageTextFrame], onPage=OtherPageStatic)
Once you’ve done that you can use a BaseDocTemplate instead of a SimpleDocTemplate:
doc = BaseDocTemplate(filename, pageTemplates=[StatementFirstPage, StatementOtherPage])
Then the first thing you put in your Story is an indication that all pages beyond the first use the alternate page template:
Story = []
Story.append(NextPageTemplate('Page N'))
Story.append( …flowable… )
etc
I think I’m correct in saying that you really are using a Frame, it’s just a default one.
Paul Keating
What you want to do means that your document is no longer “simple”.
To achieve different page layouts you need to up two page templates that define the margins. That’s not hard:
FirstPageTextFrame = Frame( …dimensons… )
StatementFirstPage = PageTemplate (id='Page 1', frames=[FirstPageTextFrame], onPage=FirstPageStatic)
where FirstPageStatic is the function that sets up your fixed header and footer.
OtherPageTextFrame = Frame( …dimensons… )
StatementFirstPage = PageTemplate (id='Page N', frames=[OtherPageTextFrame], onPage=OtherPageStatic)
Once you’ve done that you can use a BaseDocTemplate instead of a SimpleDocTemplate:
doc = BaseDocTemplate(filename, pageTemplates=[StatementFirstPage, StatementOtherPage])
Then the first thing you put in your Story is an indication that all pages beyond the first use the alternate page template:
Story = []
Story.append(NextPageTemplate('Page N'))
Story.append( …flowable… )
etc
I think I’m correct in saying that you really are using a Frame, it’s just a default one.
Paul Keating