1 import sys
; sys
.path
[:0] = ["../.."]
5 d
= document
.document()
7 for nr
in range(1, 10):
10 c
.text(0, 0, "page %d" % nr
)
11 d
.append(document
.page(c
, pagename
=chr(64+nr
), rotated
=(nr
-1)%2, fittosize
=1, paperformat
=document
.paperformat
.A4
))
13 d
.writePSfile("test_document")
14 d
.writePDFfile("test_document")