Skip to content

Commit

Permalink
DOC: Quote specs in generate_file_identifiers (#2363)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinThoma authored Dec 23, 2023
1 parent ec85a27 commit 3ab1581
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 @@ -1234,7 +1234,12 @@ def generate_file_identifiers(self) -> None:
Generate an identifier for the PDF that will be written.
The only point of this is ensuring uniqueness. Reproducibility is not
required; see 14.4 "File Identifiers".
required;
When a file is first written, both identifiers shall be set to the same value.
If both identifiers match when a file reference is resolved, it is very
likely that the correct and unchanged file has been found. If only the first
identifier matches, a different version of the correct file has been found.
see 14.4 "File Identifiers".
"""
if self._ID:
id1 = self._ID[0]
Expand Down

0 comments on commit 3ab1581

Please sign in to comment.