mirror of
https://github.com/foliojs/pdfkit.git
synced 2025-12-08 20:15:54 +00:00
Added valueOf() to generateFileID
Fixes https://github.com/foliojs/pdfkit/issues/1110
This commit is contained in:
parent
9bcfd64758
commit
df33cbcbe3
@ -14,7 +14,7 @@ class PDFSecurity {
|
||||
if (!info.hasOwnProperty(key)) {
|
||||
continue;
|
||||
}
|
||||
infoStr += `${key}: ${info[key]}\n`;
|
||||
infoStr += `${key}: ${info[key].valueOf()}\n`;
|
||||
}
|
||||
|
||||
return wordArrayToBuffer(CryptoJS.MD5(infoStr));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user