diff --git a/pypdf/_cmap.py b/pypdf/_cmap.py index de21b3429..3e0a045a8 100644 --- a/pypdf/_cmap.py +++ b/pypdf/_cmap.py @@ -516,6 +516,7 @@ def _type1_alternative( txt = txt.split(b"eexec\n")[0] # only clear part txt = txt.split(b"/Encoding")[1] # to get the encoding part lines = txt.replace(b"\r", b"\n").split(b"\n") + v = "" for li in lines: if li.startswith(b"dup"): words = [_w for _w in li.split(b" ") if _w != b""]