Skip to content

Commit

Permalink
remove erroneous assertion check
Browse files Browse the repository at this point in the history
closes py-pdf#1559
This is due to a bad interpretation of text at bottom of page 108 of pdf 1.7 reference
  • Loading branch information
pubpub-zz committed Jan 18, 2023
1 parent f494e61 commit 0b01b7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pypdf/_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -1904,7 +1904,7 @@ def _read_xref_subsections(
last_end = 0
for start, size in self._pairs(idx_pairs):
# The subsections must increase
assert start >= last_end
# assert start >= last_end
last_end = start + size
for num in range(start, start + size):
# The first entry is the type
Expand Down

0 comments on commit 0b01b7f

Please sign in to comment.