Skip to content

Commit

Permalink
fix tiff predictor decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
Benedikt Fuchs committed Nov 7, 2024
1 parent 809f03f commit be7ec22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdfminer/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def apply_tiff_predictor(
bpp = colors * (bitspercomponent // 8)
nbytes = columns * bpp
buf: list[int] = []
for scanline_i in range(0, len(data), nbytes + 1):
for scanline_i in range(0, len(data), nbytes):
raw: list[int] = []
for i in range(nbytes):
new_value = data[scanline_i + i]
Expand Down

0 comments on commit be7ec22

Please sign in to comment.