diff --git a/PyPDF2/pdf.py b/PyPDF2/pdf.py index 1d0e95011..4c65b1e6c 100644 --- a/PyPDF2/pdf.py +++ b/PyPDF2/pdf.py @@ -1734,6 +1734,7 @@ def readObjectHeader(self, stream): idnum = readUntilWhitespace(stream) extra |= utils.skipOverWhitespace(stream); stream.seek(-1, 1) generation = readUntilWhitespace(stream) + extra |= utils.skipOverWhitespace(stream); stream.seek(-1, 1) # although it's not used, it might still be necessary to read _obj = stream.read(3) # noqa: F841