Skip to content

Commit a98b0b1

Browse files
committed
Version entry in the catalog has to be a name and not a string
1 parent 57334bd commit a98b0b1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/core/editor/pdf_editor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ class PDFEditor {
550550
async #makeRoot() {
551551
const { rootDict } = this;
552552
rootDict.setIfName("Type", "Catalog");
553-
rootDict.set("Version", this.version);
553+
rootDict.setIfName("Version", this.version);
554554
this.#makePageTree();
555555
this.#makePageLabelsTree();
556556
}

0 commit comments

Comments
 (0)