|
|
|
@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
@@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
|
|
|
|
|
(typeof window !== 'undefined' ? window : this).PDFJS = {}; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
PDFJS.version = '1.0.425'; |
|
|
|
|
PDFJS.build = 'c28839b'; |
|
|
|
|
PDFJS.version = '1.0.427'; |
|
|
|
|
PDFJS.build = 'bb7e7d3'; |
|
|
|
|
|
|
|
|
|
(function pdfjsWrapper() { |
|
|
|
|
// Use strict in our context only - users might not want it
|
|
|
|
@ -23503,21 +23503,7 @@ var EvaluatorPreprocessor = (function EvaluatorPreprocessorClosure() {
@@ -23503,21 +23503,7 @@ var EvaluatorPreprocessor = (function EvaluatorPreprocessorClosure() {
|
|
|
|
|
var args = null; |
|
|
|
|
while (true) { |
|
|
|
|
var obj = this.parser.getObj(); |
|
|
|
|
if (isEOF(obj)) { |
|
|
|
|
return false; // no more commands
|
|
|
|
|
} |
|
|
|
|
if (!isCmd(obj)) { |
|
|
|
|
// argument
|
|
|
|
|
if (obj !== null) { |
|
|
|
|
if (!args) { |
|
|
|
|
args = []; |
|
|
|
|
} |
|
|
|
|
args.push((obj instanceof Dict ? obj.getAll() : obj)); |
|
|
|
|
assert(args.length <= 33, 'Too many arguments'); |
|
|
|
|
} |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (isCmd(obj)) { |
|
|
|
|
var cmd = obj.cmd; |
|
|
|
|
// Check that the command is valid
|
|
|
|
|
var opSpec = OP_MAP[cmd]; |
|
|
|
@ -23530,7 +23516,7 @@ var EvaluatorPreprocessor = (function EvaluatorPreprocessorClosure() {
@@ -23530,7 +23516,7 @@ var EvaluatorPreprocessor = (function EvaluatorPreprocessorClosure() {
|
|
|
|
|
var numArgs = opSpec.numArgs; |
|
|
|
|
|
|
|
|
|
if (!opSpec.variableArgs) { |
|
|
|
|
// Some post script commands can be nested, e.g. /F2 /GS2 gs 5.711 Tf
|
|
|
|
|
// Postscript commands can be nested, e.g. /F2 /GS2 gs 5.711 Tf
|
|
|
|
|
var argsLength = args !== null ? args.length : 0; |
|
|
|
|
if (argsLength !== numArgs) { |
|
|
|
|
var nonProcessedArgs = this.nonProcessedArgs; |
|
|
|
@ -23567,6 +23553,19 @@ var EvaluatorPreprocessor = (function EvaluatorPreprocessorClosure() {
@@ -23567,6 +23553,19 @@ var EvaluatorPreprocessor = (function EvaluatorPreprocessorClosure() {
|
|
|
|
|
operation.fn = fn; |
|
|
|
|
operation.args = args; |
|
|
|
|
return true; |
|
|
|
|
} else { |
|
|
|
|
if (isEOF(obj)) { |
|
|
|
|
return false; // no more commands
|
|
|
|
|
} |
|
|
|
|
// argument
|
|
|
|
|
if (obj !== null) { |
|
|
|
|
if (!args) { |
|
|
|
|
args = []; |
|
|
|
|
} |
|
|
|
|
args.push((obj instanceof Dict ? obj.getAll() : obj)); |
|
|
|
|
assert(args.length <= 33, 'Too many arguments'); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|