diff --git a/pypdf/_writer.py b/pypdf/_writer.py index c4406ac91..7e464309f 100644 --- a/pypdf/_writer.py +++ b/pypdf/_writer.py @@ -201,8 +201,13 @@ def __init__( dict[id(pdf)][(idnum, generation)] """ - self._ID: Union[ArrayObject, None] = None self._info_obj: Optional[PdfObject] + """The PDF files's document information dictionary, + the Info entry in the PDF file's trailer dictionary.""" + + self._ID: Union[ArrayObject, None] = None + """The PDF file identifier, + defined by the ID in the PDF file's trailer dictionary.""" if self.incremental: if isinstance(fileobj, (str, Path)):