From: Andreas Gal Date: Thu, 12 May 2011 00:17:47 +0000 (-0700) Subject: fix bug in string obj handling X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=6a4b0e8058812d23d712576f24a267a651a18447;p=pdf.js.git fix bug in string obj handling --- diff --git a/pdf.js b/pdf.js index 488e709..3b74d51 100644 --- a/pdf.js +++ b/pdf.js @@ -1144,11 +1144,11 @@ var Lexer = (function() { error("Invalid floating point number"); return value; }, - getString: function(ch) { + getString: function() { var n = 0; var numParen = 1; var done = false; - var str = ch; + var str = ""; var stream = this.stream; do { switch (ch = stream.getChar()) { @@ -1302,7 +1302,7 @@ var Lexer = (function() { case '+': case '-': case '.': return this.getNumber(ch); case '(': - return this.getString(ch); + return this.getString(); case '/': return this.getName(ch); // array punctuation