Skip to content

Commit

Permalink
Remove content stream
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinThoma committed May 21, 2022
1 parent 2c7a58d commit b4901da
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions PyPDF2/_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b4901da

Please sign in to comment.