mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 17:55:37 +02:00
return and shadow for getDocumentInfo
This commit is contained in:
parent
4703a6cfcd
commit
e283a60d7b
1 changed files with 4 additions and 1 deletions
|
@ -595,9 +595,12 @@ var PDFDocModel = (function PDFDocModelClosure() {
|
||||||
return shadow(this, 'numPages', num);
|
return shadow(this, 'numPages', num);
|
||||||
},
|
},
|
||||||
getDocumentInfo: function pdfDocGetDocumentInfo() {
|
getDocumentInfo: function pdfDocGetDocumentInfo() {
|
||||||
|
var info;
|
||||||
if (this.xref.trailer.has('Info')) {
|
if (this.xref.trailer.has('Info')) {
|
||||||
return this.xref.fetch(this.xref.trailer.get('Info'));
|
info = this.xref.fetch(this.xref.trailer.get('Info'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return shadow(this, 'getDocumentInfo', info);
|
||||||
},
|
},
|
||||||
getFingerprint: function pdfDocGetFingerprint() {
|
getFingerprint: function pdfDocGetFingerprint() {
|
||||||
var xref = this.xref, fileID;
|
var xref = this.xref, fileID;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue