Merge pull request #20432 from calixteman/version

Version entry in the catalog has to be a name and not a string
This commit is contained in:
Tim van der Meij 2025-11-11 20:31:59 +01:00 committed by GitHub
commit bc4d90711a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -790,7 +790,7 @@ class PDFEditor {
async #makeRoot() { async #makeRoot() {
const { rootDict } = this; const { rootDict } = this;
rootDict.setIfName("Type", "Catalog"); rootDict.setIfName("Type", "Catalog");
rootDict.set("Version", this.version); rootDict.setIfName("Version", this.version);
this.#makePageTree(); this.#makePageTree();
this.#makePageLabelsTree(); this.#makePageLabelsTree();
this.#makeDestinationsTree(); this.#makeDestinationsTree();