Fix lenIV misreading and warn instead of stop for unimplemented Type1 commands

This commit is contained in:
Vivien Nicolas 2011-09-07 15:20:23 +02:00
parent d72178d6dd
commit 12ef21cbbe

View File

@ -1597,7 +1597,7 @@ var Type1Parser = function() {
} else if (!command) { } else if (!command) {
break; break;
} else if (command == -1) { } else if (command == -1) {
error('Support for Type1 command ' + value + warn('Support for Type1 command ' + value +
' (' + escape + ') is not implemented in charstring: ' + ' (' + escape + ') is not implemented in charstring: ' +
charstring); charstring);
} }
@ -1641,7 +1641,8 @@ var Type1Parser = function() {
}; };
function readNumber(str, index) { function readNumber(str, index) {
while (str[index++] == ' '); while (str[index] == ' ')
index++;
var start = index; var start = index;