@@ -2074,11 +2074,13 @@ def remove_objects_from_page(
2074
2074
jump_operators = []
2075
2075
if to_delete & ObjectDeletionFlag .DRAWING_IMAGES :
2076
2076
jump_operators = (
2077
- [b"w" , b"J" , b"j" , b"M" , b"d" , b"i" ]
2078
- + [b"W" , b"W*" ]
2079
- + [b"b" , b"b*" , b"B" , b"B*" , b"S" , b"s" , b"f" , b"f*" , b"F" , b"n" ]
2080
- + [b"m" , b"l" , b"c" , b"v" , b"y" , b"h" , b"re" ]
2081
- + [b"sh" ]
2077
+ [
2078
+ b"w" , b"J" , b"j" , b"M" , b"d" , b"i" ,
2079
+ b"W" , b"W*" ,
2080
+ b"b" , b"b*" , b"B" , b"B*" , b"S" , b"s" , b"f" , b"f*" , b"F" , b"n" ,
2081
+ b"m" , b"l" , b"c" , b"v" , b"y" , b"h" , b"re" ,
2082
+ b"sh"
2083
+ ]
2082
2084
)
2083
2085
if to_delete & ObjectDeletionFlag .TEXT :
2084
2086
jump_operators = [b"Tj" , b"TJ" , b"'" , b'"' ]
@@ -2698,11 +2700,11 @@ def merge(
2698
2700
# numbers in the exclude list identifies that the exclusion is
2699
2701
# only applicable to 1st level of cloning
2700
2702
srcpages [pg .indirect_reference .idnum ] = self .add_page (
2701
- pg , list (excluded_fields ) + [ 1 , "/B" , 1 , "/Annots" ] # type: ignore
2703
+ pg , [ * list (excluded_fields ), 1 , "/B" , 1 , "/Annots" ] # type: ignore
2702
2704
)
2703
2705
else :
2704
2706
srcpages [pg .indirect_reference .idnum ] = self .insert_page (
2705
- pg , position , list (excluded_fields ) + [ 1 , "/B" , 1 , "/Annots" ] # type: ignore
2707
+ pg , position , [ * list (excluded_fields ), 1 , "/B" , 1 , "/Annots" ] # type: ignore
2706
2708
)
2707
2709
position += 1
2708
2710
srcpages [pg .indirect_reference .idnum ].original_page = pg
0 commit comments