]> git.parisson.com Git - pdf.js.git/commitdiff
Merge remote-tracking branch 'mozilla/master' into convert-docinfo
authorYury Delendik <ydelendik@mozilla.com>
Thu, 5 Apr 2012 16:34:55 +0000 (11:34 -0500)
committerYury Delendik <ydelendik@mozilla.com>
Thu, 5 Apr 2012 16:34:55 +0000 (11:34 -0500)
Conflicts:
src/core.js

1  2 
src/core.js

diff --cc src/core.js
index 3f3e95294dcdd9a602081e09dd9bd6c7332a74ce,10ae7d0853cd2c6275a1aeca28ea8b18d37f463f..15cd147e2c2938175278a48412c04ea224dab8c4
@@@ -596,15 -597,8 +597,15 @@@ var PDFDocModel = (function PDFDocModel
      },
      getDocumentInfo: function PDFDocModel_getDocumentInfo() {
        var info;
 -      if (this.xref.trailer.has('Info'))
 -        info = this.xref.trailer.get('Info');
 +      if (this.xref.trailer.has('Info')) {
-         var infoDict = this.xref.fetch(this.xref.trailer.get('Info'));
++        var infoDict = this.xref.trailer.get('Info');
 +
 +        info = {};
 +        infoDict.forEach(function(key, value) {
 +          info[key] = typeof value !== 'string' ? value :
 +            stringToPDFString(value);
 +        });
 +      }
  
        return shadow(this, 'getDocumentInfo', info);
      },