-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG: Prevent updating page contents after merging page (stamping/watermarking) #1952
Conversation
add also over param in merge_page closes py-pdf#1951
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #1952 +/- ##
=======================================
Coverage 93.93% 93.93%
=======================================
Files 33 33
Lines 6993 6996 +3
Branches 1386 1388 +2
=======================================
+ Hits 6569 6572 +3
Misses 273 273
Partials 151 151
☔ View full report in Codecov by Sentry. |
@MartinThoma |
Thank you! I'll check it today, but it might be in the evening :-) |
Co-authored-by: Martin Thoma <info@martin-thoma.de>
Co-authored-by: Martin Thoma <info@martin-thoma.de>
pypdf/_page.py
Outdated
@@ -972,7 +977,9 @@ def replace_contents( | |||
# this will be fixed with the _add_object | |||
self[NameObject(PG.CONTENTS)] = content | |||
|
|||
def merge_page(self, page2: "PageObject", expand: bool = False) -> None: | |||
def merge_page( | |||
self, page2: "PageObject", over: bool = True, expand: bool = False |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self, page2: "PageObject", over: bool = True, expand: bool = False | |
self, page2: "PageObject", expand: bool = False, over: bool = True |
Bug Fixes (BUG): - Prevent updating page contents after merging page (stamping/watermarking) (#1952) - % to be hex encoded in names (#1958) - Inverse color in CMYK images (#1947) - Dates conversion not working with Z00\'00\' (#1946) - Support UTF-16-LE Strings (#1884) [Full Changelog](3.12.0...3.12.1)
Bug Fixes (BUG): - Prevent updating page contents after merging page (stamping/watermarking) (#1952) - % to be hex encoded in names (#1958) - Inverse color in CMYK images (#1947) - Dates conversion not working with Z00\'00\' (#1946) - Support UTF-16-LE Strings (#1884) [Full Changelog](3.12.0...3.12.1)
add also over param in merge_page
closes #1951
closes #1953