diff --git a/pdfminer/utils.py b/pdfminer/utils.py index 2df07314..02927255 100644 --- a/pdfminer/utils.py +++ b/pdfminer/utils.py @@ -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]