Merge pull request #20811 from calixteman/fix_xref

Add fetch** functions in the XRefWrapper
This commit is contained in:
Tim van der Meij 2026-03-05 22:02:08 +01:00 committed by GitHub
commit 688ae9b3e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -71,6 +71,18 @@ class XRefWrapper {
fetch(ref) {
return ref instanceof Ref ? this.entries[ref.num] : ref;
}
fetchIfRefAsync(ref) {
return Promise.resolve(this.fetch(ref));
}
fetchIfRef(ref) {
return this.fetch(ref);
}
fetchAsync(ref) {
return Promise.resolve(this.fetch(ref));
}
}
class PDFEditor {