diff --git a/PyPDF2/_page.py b/PyPDF2/_page.py index 08df68569..340ee8d15 100644 --- a/PyPDF2/_page.py +++ b/PyPDF2/_page.py @@ -244,6 +244,11 @@ def __init__( self.pdf: Optional[PdfReader] = pdf self.indirect_ref = indirect_ref + def hash_value_data(self) -> bytes: + data = super().hash_value_data() + data += b"%d" % id(self) + return data + @staticmethod def create_blank_page( pdf: Optional[Any] = None, # PdfReader