'Scales a page to the specified dimentions by appling a
transformation matrix to its content and updating the page size.
:param float width: The new width.
:param float height: The new heigth.'

def scaleTo(self, width, height):

    sx = (width / float((self.mediaBox.getUpperRight_x() - self.mediaBox.getLowerLeft_x())))
    sy = (height / float((self.mediaBox.getUpperRight_y() - self.mediaBox.getLowerLeft_y())))
    self.scale(sx, sy)
