Add LF to isSpace; pass ImageLoader when a pattern is processed

This commit is contained in:
notmasteryet 2011-09-20 19:04:12 -05:00
parent 7df39bb065
commit dcd4f2ea61

4
pdf.js
View File

@ -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);
}
}
}