Throw blank even-numbered/left pages
Posted
by
TimGJ
on Stack Overflow
See other posts from Stack Overflow
or by TimGJ
Published on 2012-06-21T16:22:15Z
Indexed on
2012/07/08
3:16 UTC
Read the original article
Hit count: 157
I am trying to typeset a large document using ReportLab and Python 2.7.
It has a number of sections (about 6 in a 1,000 page document) and I would like each to start on odd-numbered/right-hand page. I have no idea though whether the preceding page will be odd or even and so need the ability to optionally throw an additional blank page before a particular paragraph style (like you sometimes get in manuals where some pages are "intentionally left blank"). Can anyone suggest how this could be done, as the only conditional page break I can find works on the basis of the amount of text on the page not a page number.
I also need to make sure that the blank page is included in the PDF so that double-sided printing works.
© Stack Overflow or respective owner