mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Dict keys need to be escaped too when saving
This commit is contained in:
parent
aef3fedc29
commit
fc154590e8
2 changed files with 3 additions and 3 deletions
|
@ -23,7 +23,7 @@ import { calculateMD5 } from "./crypto.js";
|
|||
function writeDict(dict, buffer, transform) {
|
||||
buffer.push("<<");
|
||||
for (const key of dict.getKeys()) {
|
||||
buffer.push(` /${key} `);
|
||||
buffer.push(` /${escapePDFName(key)} `);
|
||||
writeValue(dict.getRaw(key), buffer, transform);
|
||||
}
|
||||
buffer.push(">>");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue