diff --git a/pdfminer/psparser.py b/pdfminer/psparser.py index 8fc61ed2..b4869560 100755 --- a/pdfminer/psparser.py +++ b/pdfminer/psparser.py @@ -452,7 +452,7 @@ def _parse_string_1(self, s: bytes, i: int) -> int: elif self.oct: chrcode = int(self.oct, 8) assert chrcode < 256, "Invalid octal %s (%d)" % (repr(self.oct), chrcode) - self._curtoken += bytes((int(self.oct, 8),)) + self._curtoken += bytes((chrcode,)) self._parse1 = self._parse_string return i