mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 17:55:37 +02:00
Remove 'outline' from GetDoc
This commit is contained in:
parent
68e57f2232
commit
4bfcb27d0b
2 changed files with 24 additions and 11 deletions
|
@ -293,10 +293,7 @@ var PDFDocumentProxy = (function PDFDocumentProxyClosure() {
|
|||
* ].
|
||||
*/
|
||||
getOutline: function PDFDocumentProxy_getOutline() {
|
||||
return new Promise(function (resolve) {
|
||||
var outline = this.pdfInfo.outline;
|
||||
resolve(outline);
|
||||
}.bind(this));
|
||||
return this.transport.getOutline();
|
||||
},
|
||||
/**
|
||||
* @return {Promise} A promise that is resolved with an {Object} that has
|
||||
|
@ -1066,6 +1063,16 @@ var WorkerTransport = (function WorkerTransportClosure() {
|
|||
}.bind(this));
|
||||
},
|
||||
|
||||
getOutline: function WorkerTransport_getOutline() {
|
||||
return new Promise(function (resolve) {
|
||||
this.messageHandler.send('GetOutline', null,
|
||||
function transportOutline(outline) {
|
||||
resolve(outline);
|
||||
}
|
||||
);
|
||||
}.bind(this));
|
||||
},
|
||||
|
||||
startCleanup: function WorkerTransport_startCleanup() {
|
||||
this.messageHandler.send('Cleanup', null,
|
||||
function endCleanup() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue