From b4901dab9423b5201011dfb8af3d36c5fe52d6be Mon Sep 17 00:00:00 2001 From: Martin Thoma Date: Sat, 21 May 2022 18:03:47 +0200 Subject: [PATCH] Remove content stream --- PyPDF2/_page.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/PyPDF2/_page.py b/PyPDF2/_page.py index 19d69524c..63c79a1a5 100644 --- a/PyPDF2/_page.py +++ b/PyPDF2/_page.py @@ -337,21 +337,6 @@ def add_transformation( content = self.getContents() if content is not None: content = ContentStream(content, self.pdf) - content.operations.insert( - 0, - ( - map( - FloatObject, - [ - self.trimBox.getLowerLeft_x(), - self.trimBox.getLowerLeft_y(), - self.trimBox.getWidth(), - self.trimBox.getHeight(), - ], - ), - "re", - ), - ) content.operations.insert(1, ([], "W")) content.operations.insert(2, ([], "n")) if transformation_func is not None: