Skip to content

Commit

Permalink
Add other boxes
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinThoma committed Jul 6, 2022
1 parent c6df14e commit f441de0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions PyPDF2/_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -906,6 +906,9 @@ def scale(self, sx: float, sy: float) -> None:
self.add_transformation((sx, 0, 0, sy, 0, 0))
self.mediabox = self.mediabox.scale(sx, sy)
self.cropbox = self.cropbox.scale(sx, sy)
self.artbox = self.artbox.scale(sx, sy)
self.bleedbox = self.bleedbox.scale(sx, sy)
self.trimbox = self.trimbox.scale(sx, sy)
if PG.VP in self:
viewport = self[PG.VP]
if isinstance(viewport, ArrayObject):
Expand Down

0 comments on commit f441de0

Please sign in to comment.