diff --git a/pypdf/_cmap.py b/pypdf/_cmap.py index 326c96ccb..7cab77c67 100644 --- a/pypdf/_cmap.py +++ b/pypdf/_cmap.py @@ -279,7 +279,7 @@ def parse_bfrange( fmt = b"%%0%dX" % (map_dict[-1] * 2) a = multiline_rg[0] # a, b not in the current line b = multiline_rg[1] - for sq in lst[1:]: + for sq in lst[0:]: if sq == b"]": closure_found = True break