From f441de0286318c78974163d6213c46e11728d870 Mon Sep 17 00:00:00 2001 From: Martin Thoma Date: Wed, 6 Jul 2022 20:28:31 +0200 Subject: [PATCH] Add other boxes --- PyPDF2/_page.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PyPDF2/_page.py b/PyPDF2/_page.py index 4f85fb15b..94cfb952c 100644 --- a/PyPDF2/_page.py +++ b/PyPDF2/_page.py @@ -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):