Commit ec85a27 1 parent beca111 commit ec85a27 Copy full SHA for ec85a27
File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1223,7 +1223,7 @@ def cloneDocumentFromReader(
1223
1223
)
1224
1224
self .clone_document_from_reader (reader , after_page_append )
1225
1225
1226
- def _compute_document_identifier_from_content (self ) -> ByteStringObject :
1226
+ def _compute_document_identifier (self ) -> ByteStringObject :
1227
1227
stream = BytesIO ()
1228
1228
self ._write_pdf_structure (stream )
1229
1229
stream .seek (0 )
@@ -1238,9 +1238,10 @@ def generate_file_identifiers(self) -> None:
1238
1238
"""
1239
1239
if self ._ID :
1240
1240
id1 = self ._ID [0 ]
1241
+ id2 = self ._compute_document_identifier ()
1241
1242
else :
1242
- id1 = self ._compute_document_identifier_from_content ()
1243
- id2 = self . _compute_document_identifier_from_content ()
1243
+ id1 = self ._compute_document_identifier ()
1244
+ id2 = id1
1244
1245
self ._ID = ArrayObject ((id1 , id2 ))
1245
1246
1246
1247
def encrypt (
You can’t perform that action at this time.
0 commit comments