diff --git a/bower.json b/bower.json index 738cd710b..c62c05c41 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.0.618", + "version": "1.0.620", "keywords": [ "Mozilla", "pdf", diff --git a/build/pdf.combined.js b/build/pdf.combined.js index 46588ddf7..7f3a95ed8 100644 --- a/build/pdf.combined.js +++ b/build/pdf.combined.js @@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.0.618'; -PDFJS.build = 'defb67c'; +PDFJS.version = '1.0.620'; +PDFJS.build = '8909bf1'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -15432,6 +15432,9 @@ var PartialEvaluator = (function PartialEvaluatorClosure() { buildPath: function PartialEvaluator_buildPath(operatorList, fn, args) { var lastIndex = operatorList.length - 1; + if (!args) { + args = []; + } if (lastIndex < 0 || operatorList.fnArray[lastIndex] !== OPS.constructPath) { operatorList.addOp(OPS.constructPath, [[fn], args]); @@ -16977,10 +16980,10 @@ var EvaluatorPreprocessor = (function EvaluatorPreprocessorClosure() { var fn = opSpec.id; var numArgs = opSpec.numArgs; + var argsLength = args !== null ? args.length : 0; if (!opSpec.variableArgs) { // 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; while (argsLength > numArgs) { diff --git a/build/pdf.js b/build/pdf.js index dd04a0062..018960931 100644 --- a/build/pdf.js +++ b/build/pdf.js @@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.0.618'; -PDFJS.build = 'defb67c'; +PDFJS.version = '1.0.620'; +PDFJS.build = '8909bf1'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it diff --git a/build/pdf.worker.js b/build/pdf.worker.js index 8db6f9c58..105c967b1 100644 --- a/build/pdf.worker.js +++ b/build/pdf.worker.js @@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.0.618'; -PDFJS.build = 'defb67c'; +PDFJS.version = '1.0.620'; +PDFJS.build = '8909bf1'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -10575,6 +10575,9 @@ var PartialEvaluator = (function PartialEvaluatorClosure() { buildPath: function PartialEvaluator_buildPath(operatorList, fn, args) { var lastIndex = operatorList.length - 1; + if (!args) { + args = []; + } if (lastIndex < 0 || operatorList.fnArray[lastIndex] !== OPS.constructPath) { operatorList.addOp(OPS.constructPath, [[fn], args]); @@ -12120,10 +12123,10 @@ var EvaluatorPreprocessor = (function EvaluatorPreprocessorClosure() { var fn = opSpec.id; var numArgs = opSpec.numArgs; + var argsLength = args !== null ? args.length : 0; if (!opSpec.variableArgs) { // 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; while (argsLength > numArgs) { diff --git a/package.json b/package.json index 2619372fd..b6b2cc5f7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.0.618", + "version": "1.0.620", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [ "Mozilla",