Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pubpub-zz committed May 14, 2024
1 parent e247b72 commit 66f858c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pypdf/generic/_image_inline.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def extract_inline_default(stream: StreamType) -> bytes:
data.write(buf)
else:
# Write out everything before the E.
data.write(buf[0:loc])
data.write(buf[0 : loc + 1])

# Seek back in the stream to read the E next.
stream.seek(loc + 1 - len(buf), 1)
Expand All @@ -227,4 +227,5 @@ def extract_inline_default(stream: StreamType) -> bytes:
continue
# Data contains [\s]EI[\s](Q|EMC): 4 chars sufficient, checking Q operator not required.
break

return data.getvalue()

0 comments on commit 66f858c

Please sign in to comment.