Skip to content

Commit 3ab1581

Browse files
authored
DOC: Quote specs in generate_file_identifiers (#2363)
1 parent ec85a27 commit 3ab1581

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pypdf/_writer.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -1234,7 +1234,12 @@ def generate_file_identifiers(self) -> None:
12341234
Generate an identifier for the PDF that will be written.
12351235
12361236
The only point of this is ensuring uniqueness. Reproducibility is not
1237-
required; see 14.4 "File Identifiers".
1237+
required;
1238+
When a file is first written, both identifiers shall be set to the same value.
1239+
If both identifiers match when a file reference is resolved, it is very
1240+
likely that the correct and unchanged file has been found. If only the first
1241+
identifier matches, a different version of the correct file has been found.
1242+
see 14.4 "File Identifiers".
12381243
"""
12391244
if self._ID:
12401245
id1 = self._ID[0]

0 commit comments

Comments
 (0)