Skip to content
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pypdf/_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -1248,6 +1248,7 @@ def _merge_page(
self.replace_contents(ContentStream(new_content_array, self.pdf))
self[NameObject(PG.RESOURCES)] = new_resources
self[NameObject(PG.ANNOTS)] = new_annots
return

def _merge_page_writer(
self,
Expand Down
2 changes: 2 additions & 0 deletions pypdf/_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -2187,6 +2187,7 @@

clean(content, images, forms)
page.replace_contents(content)
return

def remove_images(
self,
Expand Down Expand Up @@ -3105,6 +3106,7 @@
o = cast(TreeObject, o["/Next"])
else:
return None
return

Check warning on line 3109 in pypdf/_writer.py

View check run for this annotation

Codecov / codecov/patch

pypdf/_writer.py#L3109

Added line #L3109 was not covered by tests

def find_bookmark(
self,
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@ ignore = [
"PYI042", # Type alias `mode_str_type` should be CamelCase
"RET501", # Do not explicitly `return None` in function if it is the only possible return value
"RET502", # Do not implicitly `return None` in function able to return non-`None` value
"RET503", # Missing explicit `return` at the end of function able to return non-`None` value
"RET505", # Unnecessary `else` after `return` statement
"RUF001", # Detect confusable Unicode-to-Unicode units. Introduces bugs
"RUF002", # Detect confusable Unicode-to-Unicode units. Introduces bugs
Expand Down
Loading