test_pdfgen_general.py: add another sample page with rotated text
authorrgbecker
Mon, 25 Oct 2010 12:28:08 +0000
changeset 3469 be341d58c699
parent 3468 4a75ba27637d
child 3470 3a5a51f3426c
test_pdfgen_general.py: add another sample page with rotated text
tests/test_pdfgen_general.py
--- a/tests/test_pdfgen_general.py	Mon Oct 25 12:26:09 2010 +0000
+++ b/tests/test_pdfgen_general.py	Mon Oct 25 12:28:08 2010 +0000
@@ -1038,6 +1038,13 @@
         canv.drawCentredString(0.5*S[0],0.5*S[1],'Center =(%s,%s) Page Size=%s x %s' % (0.5*S[0],0.5*S[1],S[0],S[1]))
         canv.drawRightString(S[0],2,'Bottom Right=(%s,%s) Page Size=%s x %s' % (S[0],0,S[0],S[1]))
         canv.showPage()
+        S = A4[1],A4[0]
+        canv.setPageSize(S)
+        canv.setPageRotation(0)
+        canv.drawString(0,S[1]-30,'Top Left=(%s,%s) Page Size=%s x %s' % (0,S[1],S[0],S[1]))
+        canv.drawCentredString(0.5*S[0],0.5*S[1],'Center =(%s,%s) Page Size=%s x %s' % (0.5*S[0],0.5*S[1],S[0],S[1]))
+        canv.drawRightString(S[0],32,'Bottom Right=(%s,%s) Page Size=%s x %s' % (S[0],0,S[0],S[1]))
+        canv.showPage()
         canv.save()
 
 def trySomeColors(C,enforceColorSpace=None):