Merge pull request #19888 from Snuffleupagus/rm-BasePdfManager-catalog-getter
Remove the `BasePdfManager.prototype.catalog` getter
This commit is contained in:
commit
bd81d390c7
@ -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);
|
||||
}
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user