mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +02:00
Merge pull request #16188 from calixteman/bug1823296
Use the position of the previous xref stream if any when saving a pdf (bug 1823296)
This commit is contained in:
commit
8bfebf1c24
6 changed files with 62 additions and 1 deletions
|
@ -777,6 +777,11 @@ class PDFDocumentProxy {
|
|||
return this._transport.getXFADatasets();
|
||||
},
|
||||
});
|
||||
Object.defineProperty(this, "getXRefPrevValue", {
|
||||
value: () => {
|
||||
return this._transport.getXRefPrevValue();
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2397,6 +2402,11 @@ class WorkerTransport {
|
|||
return this.messageHandler.sendWithPromise("GetXFADatasets", null);
|
||||
},
|
||||
});
|
||||
Object.defineProperty(this, "getXRefPrevValue", {
|
||||
value: () => {
|
||||
return this.messageHandler.sendWithPromise("GetXRefPrevValue", null);
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue