From dcd4f2ea61c80d89fba318c588f18cfb22311f9f Mon Sep 17 00:00:00 2001 From: notmasteryet Date: Tue, 20 Sep 2011 19:04:12 -0500 Subject: [PATCH] Add LF to isSpace; pass ImageLoader when a pattern is processed --- pdf.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pdf.js b/pdf.js index 0b810a3ee..79b5904b4 100644 --- a/pdf.js +++ b/pdf.js @@ -2415,7 +2415,7 @@ var Lexer = (function() { } constructor.isSpace = function(ch) { - return ch == ' ' || ch == '\t' || ch == '\x0d'; + return ch == ' ' || ch == '\t' || ch == '\x0d' || ch == '\x0a'; }; // A '1' in this array means the character is white space. A '1' or @@ -4184,7 +4184,7 @@ var PartialEvaluator = (function() { if (typeNum == 1) { patternName.code = this.evaluate(pattern, xref, dict.get('Resources'), - fonts); + fonts, images); } } }