From a98b0b1fb5e0802436d01b6d674605c6a65c3e3b Mon Sep 17 00:00:00 2001 From: Calixte Denizet Date: Sun, 9 Nov 2025 15:34:57 +0100 Subject: [PATCH] Version entry in the catalog has to be a name and not a string --- src/core/editor/pdf_editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }