Skip to content

Commit

Permalink
DOC: More comments in PdfWriter (#2976)
Browse files Browse the repository at this point in the history
Add two comments to the `__init__` of PdfWriter.
  • Loading branch information
j-t-1 authored Dec 2, 2024
1 parent a6c9d36 commit 6d8a18a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pypdf/_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)):
Expand Down

0 comments on commit 6d8a18a

Please sign in to comment.