Skip to content

Commit bc4d907

Browse files
Merge pull request #20432 from calixteman/version
Version entry in the catalog has to be a name and not a string
2 parents 3676ffd + a98b0b1 commit bc4d907

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
@@ -790,7 +790,7 @@ class PDFEditor {
790790
async #makeRoot() {
791791
const { rootDict } = this;
792792
rootDict.setIfName("Type", "Catalog");
793-
rootDict.set("Version", this.version);
793+
rootDict.setIfName("Version", this.version);
794794
this.#makePageTree();
795795
this.#makePageLabelsTree();
796796
this.#makeDestinationsTree();

0 commit comments

Comments
 (0)