Explorar el Código

PDF.js version 1.0.620

Yury Delendik hace 10 años
padre
commit
766d20bf10
Se han modificado 5 ficheros con 16 adiciones y 10 borrados
  1. 1 1
      bower.json
  2. 6 3
      build/pdf.combined.js
  3. 2 2
      build/pdf.js
  4. 6 3
      build/pdf.worker.js
  5. 1 1
      package.json

+ 1 - 1
bower.json

@@ -1,6 +1,6 @@
 {
   "name": "pdfjs-dist",
-  "version": "1.0.618",
+  "version": "1.0.620",
   "keywords": [
     "Mozilla",
     "pdf",

+ 6 - 3
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) {

+ 2 - 2
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

+ 6 - 3
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) {

+ 1 - 1
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",