diff --git a/src/core/editor/pdf_editor.js b/src/core/editor/pdf_editor.js index 5241863a7..e15a2d6c5 100644 --- a/src/core/editor/pdf_editor.js +++ b/src/core/editor/pdf_editor.js @@ -550,7 +550,7 @@ class PDFEditor { async #makeRoot() { const { rootDict } = this; rootDict.setIfName("Type", "Catalog"); - rootDict.set("Version", this.version); + rootDict.setIfName("Version", this.version); this.#makePageTree(); this.#makePageLabelsTree(); }