mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 01:58:06 +02:00
Use already downloaded data for the open with/save as dialog.
This commit is contained in:
parent
8ae9c7dcbd
commit
6175e4b526
5 changed files with 166 additions and 34 deletions
|
@ -136,6 +136,10 @@ var WorkerMessageHandler = {
|
|||
handler.send('GetPage', {pageInfo: page});
|
||||
});
|
||||
|
||||
handler.on('GetData', function wphSetupGetData(data, promise) {
|
||||
promise.resolve(pdfModel.stream.bytes);
|
||||
});
|
||||
|
||||
handler.on('GetAnnotationsRequest', function wphSetupGetAnnotations(data) {
|
||||
var pdfPage = pdfModel.getPage(data.pageIndex + 1);
|
||||
handler.send('GetAnnotations', {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue