Browse Source

PDF.js version 1.6.302 - See mozilla/pdf.js@1d82521b4c99787ca923092a3892ce9e8888cea7

Pdf Bot 8 years ago
parent
commit
485f752bb5
5 changed files with 20 additions and 20 deletions
  1. 1 1
      bower.json
  2. 8 8
      build/pdf.combined.js
  3. 2 2
      build/pdf.js
  4. 8 8
      build/pdf.worker.js
  5. 1 1
      package.json

+ 1 - 1
bower.json

@@ -1,6 +1,6 @@
 {
   "name": "pdfjs-dist",
-  "version": "1.6.299",
+  "version": "1.6.302",
   "main": [
     "build/pdf.js",
     "build/pdf.worker.js"

+ 8 - 8
build/pdf.combined.js

@@ -24,8 +24,8 @@
 }(this, function (exports) {
   // Use strict in our context only - users might not want it
   'use strict';
-  var pdfjsVersion = '1.6.299';
-  var pdfjsBuild = 'fe3c12b';
+  var pdfjsVersion = '1.6.302';
+  var pdfjsBuild = '1d82521';
   var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : null;
   var pdfjsLibs = {};
   (function pdfjsWrapper() {
@@ -53514,7 +53514,6 @@
             var pageLabels = new Array(this.numPages);
             var style = null;
             var prefix = '';
-            var start = 1;
             var numberTree = new NumberTree(obj, this.xref);
             var nums = numberTree.getAll();
             var currentLabel = '', currentIndex = 1;
@@ -53527,11 +53526,12 @@
                 var s = labelDict.get('S');
                 assert(!s || isName(s), 'Invalid style in PageLabel dictionary.');
                 style = s ? s.name : null;
-                prefix = labelDict.get('P') || '';
-                assert(isString(prefix), 'Invalid prefix in PageLabel dictionary.');
-                start = labelDict.get('St') || 1;
-                assert(isInt(start), 'Invalid start in PageLabel dictionary.');
-                currentIndex = start;
+                var p = labelDict.get('P');
+                assert(!p || isString(p), 'Invalid prefix in PageLabel dictionary.');
+                prefix = p ? stringToPDFString(p) : '';
+                var st = labelDict.get('St');
+                assert(!st || isInt(st) && st >= 1, 'Invalid start in PageLabel dictionary.');
+                currentIndex = st || 1;
               }
               switch (style) {
               case 'D':

+ 2 - 2
build/pdf.js

@@ -24,8 +24,8 @@
 }(this, function (exports) {
   // Use strict in our context only - users might not want it
   'use strict';
-  var pdfjsVersion = '1.6.299';
-  var pdfjsBuild = 'fe3c12b';
+  var pdfjsVersion = '1.6.302';
+  var pdfjsBuild = '1d82521';
   var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : null;
   var pdfjsLibs = {};
   (function pdfjsWrapper() {

+ 8 - 8
build/pdf.worker.js

@@ -24,8 +24,8 @@
 }(this, function (exports) {
   // Use strict in our context only - users might not want it
   'use strict';
-  var pdfjsVersion = '1.6.299';
-  var pdfjsBuild = 'fe3c12b';
+  var pdfjsVersion = '1.6.302';
+  var pdfjsBuild = '1d82521';
   var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : null;
   var pdfjsLibs = {};
   (function pdfjsWrapper() {
@@ -45577,7 +45577,6 @@
             var pageLabels = new Array(this.numPages);
             var style = null;
             var prefix = '';
-            var start = 1;
             var numberTree = new NumberTree(obj, this.xref);
             var nums = numberTree.getAll();
             var currentLabel = '', currentIndex = 1;
@@ -45590,11 +45589,12 @@
                 var s = labelDict.get('S');
                 assert(!s || isName(s), 'Invalid style in PageLabel dictionary.');
                 style = s ? s.name : null;
-                prefix = labelDict.get('P') || '';
-                assert(isString(prefix), 'Invalid prefix in PageLabel dictionary.');
-                start = labelDict.get('St') || 1;
-                assert(isInt(start), 'Invalid start in PageLabel dictionary.');
-                currentIndex = start;
+                var p = labelDict.get('P');
+                assert(!p || isString(p), 'Invalid prefix in PageLabel dictionary.');
+                prefix = p ? stringToPDFString(p) : '';
+                var st = labelDict.get('St');
+                assert(!st || isInt(st) && st >= 1, 'Invalid start in PageLabel dictionary.');
+                currentIndex = st || 1;
               }
               switch (style) {
               case 'D':

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "pdfjs-dist",
-  "version": "1.6.299",
+  "version": "1.6.302",
   "main": "build/pdf.js",
   "description": "Generic build of Mozilla's PDF.js library.",
   "keywords": [