add UnicodeEngine (MultiEngineText and axis texters returning MultiEngineText), texte...
[PyX.git] / test / functional / test_document.py
blob740ef44112e8026d3f8b9628e202a181a34fe39f
1 import sys; sys.path[:0] = ["../.."]
3 from pyx import *
5 d = document.document()
7 for nr in range(1, 10):
8 c = canvas.canvas()
9 if nr != 7:
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")