Skip to content

Commit 688ae9b

Browse files
Merge pull request #20811 from calixteman/fix_xref
Add fetch** functions in the XRefWrapper
2 parents 55fe046 + 150c1e8 commit 688ae9b

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

src/core/editor/pdf_editor.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,18 @@ class XRefWrapper {
7171
fetch(ref) {
7272
return ref instanceof Ref ? this.entries[ref.num] : ref;
7373
}
74+
75+
fetchIfRefAsync(ref) {
76+
return Promise.resolve(this.fetch(ref));
77+
}
78+
79+
fetchIfRef(ref) {
80+
return this.fetch(ref);
81+
}
82+
83+
fetchAsync(ref) {
84+
return Promise.resolve(this.fetch(ref));
85+
}
7486
}
7587

7688
class PDFEditor {

0 commit comments

Comments
 (0)