Skip to content

Commit

Permalink
Fixed error when calculating height in scaleTo() method
Browse files Browse the repository at this point in the history
  • Loading branch information
mstamy2 committed Apr 29, 2014
1 parent 565a865 commit 4a899f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PyPDF2/pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -2059,7 +2059,7 @@ 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_x ())
self.mediaBox.getLowerLeft_y ())
self.scale(sx, sy)

##
Expand Down

0 comments on commit 4a899f6

Please sign in to comment.