Merge pull request #19888 from Snuffleupagus/rm-BasePdfManager-catalog-getter

Remove the `BasePdfManager.prototype.catalog` getter
This commit is contained in:
Tim van der Meij 2025-05-04 13:33:16 +02:00 committed by GitHub
commit bd81d390c7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 5 deletions

View File

@ -95,10 +95,6 @@ class BasePdfManager {
return this._docBaseUrl;
}
get catalog() {
return this.pdfDocument.catalog;
}
ensureDoc(prop, args) {
return this.ensure(this.pdfDocument, prop, args);
}

View File

@ -118,7 +118,7 @@ class StructTreeRoot {
pdfManager,
changes,
}) {
const root = pdfManager.catalog.cloneDict();
const root = await pdfManager.ensureCatalog("cloneDict");
const cache = new RefSetCache();
cache.put(catalogRef, root);