Browse Source

PDF.js version 1.7.378 - See mozilla/pdf.js@086021b21e218a62bf5d41c5cf186bd618a427eb

pdfjsbot 8 years ago
parent
commit
dbfafeb6e1
12 changed files with 129 additions and 120 deletions
  1. 1 1
      bower.json
  2. 50 47
      build/pdf.combined.js
  3. 47 47
      build/pdf.js
  4. 0 0
      build/pdf.min.js
  5. 19 16
      build/pdf.worker.js
  6. 0 0
      build/pdf.worker.min.js
  7. 3 0
      lib/core/document.js
  8. 2 2
      lib/display/api.js
  9. 2 2
      lib/display/global.js
  10. 2 2
      lib/pdf.js
  11. 2 2
      lib/pdf.worker.js
  12. 1 1
      package.json

+ 1 - 1
bower.json

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

+ 50 - 47
build/pdf.combined.js

@@ -88,7 +88,7 @@ return /******/ (function(modules) { // webpackBootstrap
 /******/ 	__w_pdfjs_require__.p = "";
 /******/
 /******/ 	// Load entry module and return exports
-/******/ 	return __w_pdfjs_require__(__w_pdfjs_require__.s = 48);
+/******/ 	return __w_pdfjs_require__(__w_pdfjs_require__.s = 47);
 /******/ })
 /************************************************************************/
 /******/ ([
@@ -97,7 +97,7 @@ return /******/ (function(modules) { // webpackBootstrap
 
 "use strict";
 /* WEBPACK VAR INJECTION */(function(global) {
-var compatibility = __w_pdfjs_require__(47);
+var compatibility = __w_pdfjs_require__(48);
 var globalScope = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : this;
 var FONT_IDENTITY_MATRIX = [
  0.001,
@@ -20022,8 +20022,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
   }
  };
 }();
-exports.version = '1.7.376';
-exports.build = 'e2e13df4';
+exports.version = '1.7.378';
+exports.build = '086021b2';
 exports.getDocument = getDocument;
 exports.PDFDataRangeTransport = PDFDataRangeTransport;
 exports.PDFWorker = PDFWorker;
@@ -38777,8 +38777,8 @@ if (!globalScope.PDFJS) {
  globalScope.PDFJS = {};
 }
 var PDFJS = globalScope.PDFJS;
-PDFJS.version = '1.7.376';
-PDFJS.build = 'e2e13df4';
+PDFJS.version = '1.7.378';
+PDFJS.build = '086021b2';
 PDFJS.pdfBug = false;
 if (PDFJS.verbosity !== undefined) {
  sharedUtil.setVerbosityLevel(PDFJS.verbosity);
@@ -42159,6 +42159,9 @@ var PDFDocument = function PDFDocumentClosure() {
    try {
     infoDict = this.xref.trailer.get('Info');
    } catch (err) {
+    if (err instanceof MissingDataException) {
+     throw err;
+    }
     info('The document information dictionary is invalid.');
    }
    if (infoDict) {
@@ -56480,6 +56483,47 @@ exports.TilingPattern = TilingPattern;
 /* 47 */
 /***/ (function(module, exports, __w_pdfjs_require__) {
 
+"use strict";
+
+var pdfjsVersion = '1.7.378';
+var pdfjsBuild = '086021b2';
+var pdfjsSharedUtil = __w_pdfjs_require__(0);
+var pdfjsDisplayGlobal = __w_pdfjs_require__(26);
+var pdfjsDisplayAPI = __w_pdfjs_require__(10);
+var pdfjsDisplayTextLayer = __w_pdfjs_require__(12);
+var pdfjsDisplayAnnotationLayer = __w_pdfjs_require__(9);
+var pdfjsDisplayDOMUtils = __w_pdfjs_require__(3);
+var pdfjsDisplaySVG = __w_pdfjs_require__(11);
+exports.PDFJS = pdfjsDisplayGlobal.PDFJS;
+exports.build = pdfjsDisplayAPI.build;
+exports.version = pdfjsDisplayAPI.version;
+exports.getDocument = pdfjsDisplayAPI.getDocument;
+exports.PDFDataRangeTransport = pdfjsDisplayAPI.PDFDataRangeTransport;
+exports.PDFWorker = pdfjsDisplayAPI.PDFWorker;
+exports.renderTextLayer = pdfjsDisplayTextLayer.renderTextLayer;
+exports.AnnotationLayer = pdfjsDisplayAnnotationLayer.AnnotationLayer;
+exports.CustomStyle = pdfjsDisplayDOMUtils.CustomStyle;
+exports.createPromiseCapability = pdfjsSharedUtil.createPromiseCapability;
+exports.PasswordResponses = pdfjsSharedUtil.PasswordResponses;
+exports.InvalidPDFException = pdfjsSharedUtil.InvalidPDFException;
+exports.MissingPDFException = pdfjsSharedUtil.MissingPDFException;
+exports.SVGGraphics = pdfjsDisplaySVG.SVGGraphics;
+exports.UnexpectedResponseException = pdfjsSharedUtil.UnexpectedResponseException;
+exports.OPS = pdfjsSharedUtil.OPS;
+exports.UNSUPPORTED_FEATURES = pdfjsSharedUtil.UNSUPPORTED_FEATURES;
+exports.isValidUrl = pdfjsDisplayDOMUtils.isValidUrl;
+exports.createValidAbsoluteUrl = pdfjsSharedUtil.createValidAbsoluteUrl;
+exports.createObjectURL = pdfjsSharedUtil.createObjectURL;
+exports.removeNullCharacters = pdfjsSharedUtil.removeNullCharacters;
+exports.shadow = pdfjsSharedUtil.shadow;
+exports.createBlob = pdfjsSharedUtil.createBlob;
+exports.getFilenameFromUrl = pdfjsDisplayDOMUtils.getFilenameFromUrl;
+exports.addLinkAttributes = pdfjsDisplayDOMUtils.addLinkAttributes;
+
+/***/ }),
+/* 48 */
+/***/ (function(module, exports, __w_pdfjs_require__) {
+
 "use strict";
 /* WEBPACK VAR INJECTION */(function(global) {
 if (typeof PDFJS === 'undefined' || !PDFJS.compatibilityChecked) {
@@ -57895,47 +57939,6 @@ if (typeof PDFJS === 'undefined' || !PDFJS.compatibilityChecked) {
 }
 /* WEBPACK VAR INJECTION */}.call(exports, __w_pdfjs_require__(13)))
 
-/***/ }),
-/* 48 */
-/***/ (function(module, exports, __w_pdfjs_require__) {
-
-"use strict";
-
-var pdfjsVersion = '1.7.376';
-var pdfjsBuild = 'e2e13df4';
-var pdfjsSharedUtil = __w_pdfjs_require__(0);
-var pdfjsDisplayGlobal = __w_pdfjs_require__(26);
-var pdfjsDisplayAPI = __w_pdfjs_require__(10);
-var pdfjsDisplayTextLayer = __w_pdfjs_require__(12);
-var pdfjsDisplayAnnotationLayer = __w_pdfjs_require__(9);
-var pdfjsDisplayDOMUtils = __w_pdfjs_require__(3);
-var pdfjsDisplaySVG = __w_pdfjs_require__(11);
-exports.PDFJS = pdfjsDisplayGlobal.PDFJS;
-exports.build = pdfjsDisplayAPI.build;
-exports.version = pdfjsDisplayAPI.version;
-exports.getDocument = pdfjsDisplayAPI.getDocument;
-exports.PDFDataRangeTransport = pdfjsDisplayAPI.PDFDataRangeTransport;
-exports.PDFWorker = pdfjsDisplayAPI.PDFWorker;
-exports.renderTextLayer = pdfjsDisplayTextLayer.renderTextLayer;
-exports.AnnotationLayer = pdfjsDisplayAnnotationLayer.AnnotationLayer;
-exports.CustomStyle = pdfjsDisplayDOMUtils.CustomStyle;
-exports.createPromiseCapability = pdfjsSharedUtil.createPromiseCapability;
-exports.PasswordResponses = pdfjsSharedUtil.PasswordResponses;
-exports.InvalidPDFException = pdfjsSharedUtil.InvalidPDFException;
-exports.MissingPDFException = pdfjsSharedUtil.MissingPDFException;
-exports.SVGGraphics = pdfjsDisplaySVG.SVGGraphics;
-exports.UnexpectedResponseException = pdfjsSharedUtil.UnexpectedResponseException;
-exports.OPS = pdfjsSharedUtil.OPS;
-exports.UNSUPPORTED_FEATURES = pdfjsSharedUtil.UNSUPPORTED_FEATURES;
-exports.isValidUrl = pdfjsDisplayDOMUtils.isValidUrl;
-exports.createValidAbsoluteUrl = pdfjsSharedUtil.createValidAbsoluteUrl;
-exports.createObjectURL = pdfjsSharedUtil.createObjectURL;
-exports.removeNullCharacters = pdfjsSharedUtil.removeNullCharacters;
-exports.shadow = pdfjsSharedUtil.shadow;
-exports.createBlob = pdfjsSharedUtil.createBlob;
-exports.getFilenameFromUrl = pdfjsDisplayDOMUtils.getFilenameFromUrl;
-exports.addLinkAttributes = pdfjsDisplayDOMUtils.addLinkAttributes;
-
 /***/ })
 /******/ ]);
 });

+ 47 - 47
build/pdf.js

@@ -88,7 +88,7 @@ return /******/ (function(modules) { // webpackBootstrap
 /******/ 	__w_pdfjs_require__.p = "";
 /******/
 /******/ 	// Load entry module and return exports
-/******/ 	return __w_pdfjs_require__(__w_pdfjs_require__.s = 14);
+/******/ 	return __w_pdfjs_require__(__w_pdfjs_require__.s = 13);
 /******/ })
 /************************************************************************/
 /******/ ([
@@ -97,7 +97,7 @@ return /******/ (function(modules) { // webpackBootstrap
 
 "use strict";
 /* WEBPACK VAR INJECTION */(function(global) {
-var compatibility = __w_pdfjs_require__(13);
+var compatibility = __w_pdfjs_require__(14);
 var globalScope = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : this;
 var FONT_IDENTITY_MATRIX = [
  0.001,
@@ -3735,8 +3735,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
   }
  };
 }();
-exports.version = '1.7.376';
-exports.build = 'e2e13df4';
+exports.version = '1.7.378';
+exports.build = '086021b2';
 exports.getDocument = getDocument;
 exports.PDFDataRangeTransport = PDFDataRangeTransport;
 exports.PDFWorker = PDFWorker;
@@ -5768,8 +5768,8 @@ if (!globalScope.PDFJS) {
  globalScope.PDFJS = {};
 }
 var PDFJS = globalScope.PDFJS;
-PDFJS.version = '1.7.376';
-PDFJS.build = 'e2e13df4';
+PDFJS.version = '1.7.378';
+PDFJS.build = '086021b2';
 PDFJS.pdfBug = false;
 if (PDFJS.verbosity !== undefined) {
  sharedUtil.setVerbosityLevel(PDFJS.verbosity);
@@ -8434,6 +8434,47 @@ exports.TilingPattern = TilingPattern;
 /* 13 */
 /***/ (function(module, exports, __w_pdfjs_require__) {
 
+"use strict";
+
+var pdfjsVersion = '1.7.378';
+var pdfjsBuild = '086021b2';
+var pdfjsSharedUtil = __w_pdfjs_require__(0);
+var pdfjsDisplayGlobal = __w_pdfjs_require__(9);
+var pdfjsDisplayAPI = __w_pdfjs_require__(3);
+var pdfjsDisplayTextLayer = __w_pdfjs_require__(5);
+var pdfjsDisplayAnnotationLayer = __w_pdfjs_require__(2);
+var pdfjsDisplayDOMUtils = __w_pdfjs_require__(1);
+var pdfjsDisplaySVG = __w_pdfjs_require__(4);
+exports.PDFJS = pdfjsDisplayGlobal.PDFJS;
+exports.build = pdfjsDisplayAPI.build;
+exports.version = pdfjsDisplayAPI.version;
+exports.getDocument = pdfjsDisplayAPI.getDocument;
+exports.PDFDataRangeTransport = pdfjsDisplayAPI.PDFDataRangeTransport;
+exports.PDFWorker = pdfjsDisplayAPI.PDFWorker;
+exports.renderTextLayer = pdfjsDisplayTextLayer.renderTextLayer;
+exports.AnnotationLayer = pdfjsDisplayAnnotationLayer.AnnotationLayer;
+exports.CustomStyle = pdfjsDisplayDOMUtils.CustomStyle;
+exports.createPromiseCapability = pdfjsSharedUtil.createPromiseCapability;
+exports.PasswordResponses = pdfjsSharedUtil.PasswordResponses;
+exports.InvalidPDFException = pdfjsSharedUtil.InvalidPDFException;
+exports.MissingPDFException = pdfjsSharedUtil.MissingPDFException;
+exports.SVGGraphics = pdfjsDisplaySVG.SVGGraphics;
+exports.UnexpectedResponseException = pdfjsSharedUtil.UnexpectedResponseException;
+exports.OPS = pdfjsSharedUtil.OPS;
+exports.UNSUPPORTED_FEATURES = pdfjsSharedUtil.UNSUPPORTED_FEATURES;
+exports.isValidUrl = pdfjsDisplayDOMUtils.isValidUrl;
+exports.createValidAbsoluteUrl = pdfjsSharedUtil.createValidAbsoluteUrl;
+exports.createObjectURL = pdfjsSharedUtil.createObjectURL;
+exports.removeNullCharacters = pdfjsSharedUtil.removeNullCharacters;
+exports.shadow = pdfjsSharedUtil.shadow;
+exports.createBlob = pdfjsSharedUtil.createBlob;
+exports.getFilenameFromUrl = pdfjsDisplayDOMUtils.getFilenameFromUrl;
+exports.addLinkAttributes = pdfjsDisplayDOMUtils.addLinkAttributes;
+
+/***/ }),
+/* 14 */
+/***/ (function(module, exports, __w_pdfjs_require__) {
+
 "use strict";
 /* WEBPACK VAR INJECTION */(function(global) {
 if (typeof PDFJS === 'undefined' || !PDFJS.compatibilityChecked) {
@@ -9849,47 +9890,6 @@ if (typeof PDFJS === 'undefined' || !PDFJS.compatibilityChecked) {
 }
 /* WEBPACK VAR INJECTION */}.call(exports, __w_pdfjs_require__(6)))
 
-/***/ }),
-/* 14 */
-/***/ (function(module, exports, __w_pdfjs_require__) {
-
-"use strict";
-
-var pdfjsVersion = '1.7.376';
-var pdfjsBuild = 'e2e13df4';
-var pdfjsSharedUtil = __w_pdfjs_require__(0);
-var pdfjsDisplayGlobal = __w_pdfjs_require__(9);
-var pdfjsDisplayAPI = __w_pdfjs_require__(3);
-var pdfjsDisplayTextLayer = __w_pdfjs_require__(5);
-var pdfjsDisplayAnnotationLayer = __w_pdfjs_require__(2);
-var pdfjsDisplayDOMUtils = __w_pdfjs_require__(1);
-var pdfjsDisplaySVG = __w_pdfjs_require__(4);
-exports.PDFJS = pdfjsDisplayGlobal.PDFJS;
-exports.build = pdfjsDisplayAPI.build;
-exports.version = pdfjsDisplayAPI.version;
-exports.getDocument = pdfjsDisplayAPI.getDocument;
-exports.PDFDataRangeTransport = pdfjsDisplayAPI.PDFDataRangeTransport;
-exports.PDFWorker = pdfjsDisplayAPI.PDFWorker;
-exports.renderTextLayer = pdfjsDisplayTextLayer.renderTextLayer;
-exports.AnnotationLayer = pdfjsDisplayAnnotationLayer.AnnotationLayer;
-exports.CustomStyle = pdfjsDisplayDOMUtils.CustomStyle;
-exports.createPromiseCapability = pdfjsSharedUtil.createPromiseCapability;
-exports.PasswordResponses = pdfjsSharedUtil.PasswordResponses;
-exports.InvalidPDFException = pdfjsSharedUtil.InvalidPDFException;
-exports.MissingPDFException = pdfjsSharedUtil.MissingPDFException;
-exports.SVGGraphics = pdfjsDisplaySVG.SVGGraphics;
-exports.UnexpectedResponseException = pdfjsSharedUtil.UnexpectedResponseException;
-exports.OPS = pdfjsSharedUtil.OPS;
-exports.UNSUPPORTED_FEATURES = pdfjsSharedUtil.UNSUPPORTED_FEATURES;
-exports.isValidUrl = pdfjsDisplayDOMUtils.isValidUrl;
-exports.createValidAbsoluteUrl = pdfjsSharedUtil.createValidAbsoluteUrl;
-exports.createObjectURL = pdfjsSharedUtil.createObjectURL;
-exports.removeNullCharacters = pdfjsSharedUtil.removeNullCharacters;
-exports.shadow = pdfjsSharedUtil.shadow;
-exports.createBlob = pdfjsSharedUtil.createBlob;
-exports.getFilenameFromUrl = pdfjsDisplayDOMUtils.getFilenameFromUrl;
-exports.addLinkAttributes = pdfjsDisplayDOMUtils.addLinkAttributes;
-
 /***/ })
 /******/ ]);
 });

File diff suppressed because it is too large
+ 0 - 0
build/pdf.min.js


+ 19 - 16
build/pdf.worker.js

@@ -88,7 +88,7 @@ return /******/ (function(modules) { // webpackBootstrap
 /******/ 	__w_pdfjs_require__.p = "";
 /******/
 /******/ 	// Load entry module and return exports
-/******/ 	return __w_pdfjs_require__(__w_pdfjs_require__.s = 37);
+/******/ 	return __w_pdfjs_require__(__w_pdfjs_require__.s = 36);
 /******/ })
 /************************************************************************/
 /******/ ([
@@ -97,7 +97,7 @@ return /******/ (function(modules) { // webpackBootstrap
 
 "use strict";
 /* WEBPACK VAR INJECTION */(function(global) {
-var compatibility = __w_pdfjs_require__(36);
+var compatibility = __w_pdfjs_require__(37);
 var globalScope = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : this;
 var FONT_IDENTITY_MATRIX = [
  0.001,
@@ -38395,6 +38395,9 @@ var PDFDocument = function PDFDocumentClosure() {
    try {
     infoDict = this.xref.trailer.get('Info');
    } catch (err) {
+    if (err instanceof MissingDataException) {
+     throw err;
+    }
     info('The document information dictionary is invalid.');
    }
    if (infoDict) {
@@ -49668,6 +49671,20 @@ exports.Type1Parser = Type1Parser;
 /* 36 */
 /***/ (function(module, exports, __w_pdfjs_require__) {
 
+"use strict";
+
+var pdfjsVersion = '1.7.378';
+var pdfjsBuild = '086021b2';
+var pdfjsCoreWorker = __w_pdfjs_require__(8);
+{
+ __w_pdfjs_require__(19);
+}
+exports.WorkerMessageHandler = pdfjsCoreWorker.WorkerMessageHandler;
+
+/***/ }),
+/* 37 */
+/***/ (function(module, exports, __w_pdfjs_require__) {
+
 "use strict";
 /* WEBPACK VAR INJECTION */(function(global) {
 if (typeof PDFJS === 'undefined' || !PDFJS.compatibilityChecked) {
@@ -51083,20 +51100,6 @@ if (typeof PDFJS === 'undefined' || !PDFJS.compatibilityChecked) {
 }
 /* WEBPACK VAR INJECTION */}.call(exports, __w_pdfjs_require__(9)))
 
-/***/ }),
-/* 37 */
-/***/ (function(module, exports, __w_pdfjs_require__) {
-
-"use strict";
-
-var pdfjsVersion = '1.7.376';
-var pdfjsBuild = 'e2e13df4';
-var pdfjsCoreWorker = __w_pdfjs_require__(8);
-{
- __w_pdfjs_require__(19);
-}
-exports.WorkerMessageHandler = pdfjsCoreWorker.WorkerMessageHandler;
-
 /***/ })
 /******/ ]);
 });

File diff suppressed because it is too large
+ 0 - 0
build/pdf.worker.min.js


+ 3 - 0
lib/core/document.js

@@ -472,6 +472,9 @@ var PDFDocument = function PDFDocumentClosure() {
    try {
     infoDict = this.xref.trailer.get('Info');
    } catch (err) {
+    if (err instanceof MissingDataException) {
+     throw err;
+    }
     info('The document information dictionary is invalid.');
    }
    if (infoDict) {

+ 2 - 2
lib/display/api.js

@@ -1374,8 +1374,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
   }
  };
 }();
-exports.version = '1.7.376';
-exports.build = 'e2e13df4';
+exports.version = '1.7.378';
+exports.build = '086021b2';
 exports.getDocument = getDocument;
 exports.PDFDataRangeTransport = PDFDataRangeTransport;
 exports.PDFWorker = PDFWorker;

+ 2 - 2
lib/display/global.js

@@ -30,8 +30,8 @@ if (!globalScope.PDFJS) {
  globalScope.PDFJS = {};
 }
 var PDFJS = globalScope.PDFJS;
-PDFJS.version = '1.7.376';
-PDFJS.build = 'e2e13df4';
+PDFJS.version = '1.7.378';
+PDFJS.build = '086021b2';
 PDFJS.pdfBug = false;
 if (PDFJS.verbosity !== undefined) {
  sharedUtil.setVerbosityLevel(PDFJS.verbosity);

+ 2 - 2
lib/pdf.js

@@ -13,8 +13,8 @@
  * limitations under the License.
  */
 'use strict';
-var pdfjsVersion = '1.7.376';
-var pdfjsBuild = 'e2e13df4';
+var pdfjsVersion = '1.7.378';
+var pdfjsBuild = '086021b2';
 var pdfjsSharedUtil = require('./shared/util.js');
 var pdfjsDisplayGlobal = require('./display/global.js');
 var pdfjsDisplayAPI = require('./display/api.js');

+ 2 - 2
lib/pdf.worker.js

@@ -13,8 +13,8 @@
  * limitations under the License.
  */
 'use strict';
-var pdfjsVersion = '1.7.376';
-var pdfjsBuild = 'e2e13df4';
+var pdfjsVersion = '1.7.378';
+var pdfjsBuild = '086021b2';
 var pdfjsCoreWorker = require('./core/worker.js');
 {
  require('./core/network.js');

+ 1 - 1
package.json

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

Some files were not shown because too many files changed in this diff