From 485f752bb56a98b08608fb287bf3fa1c52f9846d Mon Sep 17 00:00:00 2001 From: Pdf Bot Date: Thu, 3 Nov 2016 21:21:36 +0000 Subject: [PATCH] PDF.js version 1.6.302 - See mozilla/pdf.js@1d82521b4c99787ca923092a3892ce9e8888cea7 --- bower.json | 2 +- build/pdf.combined.js | 16 ++++++++-------- build/pdf.js | 4 ++-- build/pdf.worker.js | 16 ++++++++-------- package.json | 2 +- 5 files changed, 20 insertions(+), 20 deletions(-) diff --git a/bower.json b/bower.json index 04df60e2e..92f45a9c8 100644 --- a/bower.json +++ b/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" diff --git a/build/pdf.combined.js b/build/pdf.combined.js index ab1898901..b58440fe3 100644 --- a/build/pdf.combined.js +++ b/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': diff --git a/build/pdf.js b/build/pdf.js index 3ba73f61c..f4446eb8a 100644 --- a/build/pdf.js +++ b/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() { diff --git a/build/pdf.worker.js b/build/pdf.worker.js index 959d2f113..da47680ed 100644 --- a/build/pdf.worker.js +++ b/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': diff --git a/package.json b/package.json index fe57c3a39..c86eb7a65 100644 --- a/package.json +++ b/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": [