]> git.parisson.com Git - pdf.js.git/commitdiff
Add LF to isSpace; pass ImageLoader when a pattern is processed
authornotmasteryet <async.processingjs@yahoo.com>
Wed, 21 Sep 2011 00:04:12 +0000 (19:04 -0500)
committernotmasteryet <async.processingjs@yahoo.com>
Wed, 21 Sep 2011 00:04:12 +0000 (19:04 -0500)
pdf.js

diff --git a/pdf.js b/pdf.js
index 0b810a3ee298309d1a3834f13d25104e106a395e..79b5904b4bd932e239d7f8de89d1ea16c8b36976 100644 (file)
--- 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);
                 }
               }
             }