From e283a60d7b51b11a2dd018983d2fd80eca7f871c Mon Sep 17 00:00:00 2001 From: Saebekassebil Date: Tue, 27 Mar 2012 00:16:16 +0200 Subject: [PATCH] return and shadow for getDocumentInfo --- src/core.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/core.js b/src/core.js index dffdbd44e..3e10e6586 100644 --- a/src/core.js +++ b/src/core.js @@ -595,9 +595,12 @@ var PDFDocModel = (function PDFDocModelClosure() { return shadow(this, 'numPages', num); }, getDocumentInfo: function pdfDocGetDocumentInfo() { + var 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() { var xref = this.xref, fileID;