# Use x or y scaling factor, whichever fits on the DC
actualScale = min(scaleX, scaleY)
- # Calculate the position on the DC for centring the graphic
+ # Calculate the position on the DC for centering the graphic
posX = (w - (self.canvas.getWidth() * actualScale)) / 2.0
posY = (h - (self.canvas.getHeight() * actualScale)) / 2.0
#-------------------------------------------
- self.canvas.DoDrawing(dc)
+ self.canvas.DoDrawing(dc, True)
dc.DrawText("Page: %d" % page, marginX/2, maxY-marginY)
return True
overview = """\
"""
+
+
+
+
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
+