Browse Source

PDF.js version 1.7.351 - See mozilla/pdf.js@a544a3b4a4c5577bdbef2109082cfcdebf94460c

master v1.7.351
pdfjsbot 8 years ago
parent
commit
109b0780dd
  1. 2
      bower.json
  2. 42
      build/pdf.combined.js
  3. 42
      build/pdf.js
  4. 10
      build/pdf.min.js
  5. 34
      build/pdf.worker.js
  6. 38
      build/pdf.worker.min.js
  7. 4
      lib/display/api.js
  8. 4
      lib/display/global.js
  9. 4
      lib/pdf.js
  10. 4
      lib/pdf.worker.js
  11. 5
      lib/web/pdf_attachment_viewer.js
  12. 6
      lib/web/pdf_outline_viewer.js
  13. 2
      package.json
  14. 30
      web/compatibility.js
  15. 30
      web/pdf_viewer.js

2
bower.json

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

42
build/pdf.combined.js

@ -26,41 +26,41 @@ @@ -26,41 +26,41 @@
return /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __w_pdfjs_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;
/******/
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __w_pdfjs_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __w_pdfjs_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __w_pdfjs_require__.c = installedModules;
/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __w_pdfjs_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports
/******/ __w_pdfjs_require__.d = function(exports, name, getter) {
/******/ if(!__w_pdfjs_require__.o(exports, name)) {
@ -71,7 +71,7 @@ return /******/ (function(modules) { // webpackBootstrap @@ -71,7 +71,7 @@ return /******/ (function(modules) { // webpackBootstrap
/******/ });
/******/ }
/******/ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __w_pdfjs_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
@ -80,13 +80,13 @@ return /******/ (function(modules) { // webpackBootstrap @@ -80,13 +80,13 @@ return /******/ (function(modules) { // webpackBootstrap
/******/ __w_pdfjs_require__.d(getter, 'a', getter);
/******/ return getter;
/******/ };
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/ __w_pdfjs_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ // __webpack_public_path__
/******/ __w_pdfjs_require__.p = "";
/******/
/******/ // Load entry module and return exports
/******/ return __w_pdfjs_require__(__w_pdfjs_require__.s = 48);
/******/ })
@ -20022,8 +20022,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() { @@ -20022,8 +20022,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
}
};
}();
exports.version = '1.7.348';
exports.build = '754c4bd0';
exports.version = '1.7.351';
exports.build = 'a544a3b4';
exports.getDocument = getDocument;
exports.PDFDataRangeTransport = PDFDataRangeTransport;
exports.PDFWorker = PDFWorker;
@ -38777,8 +38777,8 @@ if (!globalScope.PDFJS) { @@ -38777,8 +38777,8 @@ if (!globalScope.PDFJS) {
globalScope.PDFJS = {};
}
var PDFJS = globalScope.PDFJS;
PDFJS.version = '1.7.348';
PDFJS.build = '754c4bd0';
PDFJS.version = '1.7.351';
PDFJS.build = 'a544a3b4';
PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) {
sharedUtil.setVerbosityLevel(PDFJS.verbosity);
@ -57884,8 +57884,8 @@ if (typeof PDFJS === 'undefined' || !PDFJS.compatibilityChecked) { @@ -57884,8 +57884,8 @@ if (typeof PDFJS === 'undefined' || !PDFJS.compatibilityChecked) {
"use strict";
var pdfjsVersion = '1.7.348';
var pdfjsBuild = '754c4bd0';
var pdfjsVersion = '1.7.351';
var pdfjsBuild = 'a544a3b4';
var pdfjsSharedUtil = __w_pdfjs_require__(0);
var pdfjsDisplayGlobal = __w_pdfjs_require__(26);
var pdfjsDisplayAPI = __w_pdfjs_require__(10);

42
build/pdf.js

@ -26,41 +26,41 @@ @@ -26,41 +26,41 @@
return /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __w_pdfjs_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;
/******/
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __w_pdfjs_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __w_pdfjs_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __w_pdfjs_require__.c = installedModules;
/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __w_pdfjs_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports
/******/ __w_pdfjs_require__.d = function(exports, name, getter) {
/******/ if(!__w_pdfjs_require__.o(exports, name)) {
@ -71,7 +71,7 @@ return /******/ (function(modules) { // webpackBootstrap @@ -71,7 +71,7 @@ return /******/ (function(modules) { // webpackBootstrap
/******/ });
/******/ }
/******/ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __w_pdfjs_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
@ -80,13 +80,13 @@ return /******/ (function(modules) { // webpackBootstrap @@ -80,13 +80,13 @@ return /******/ (function(modules) { // webpackBootstrap
/******/ __w_pdfjs_require__.d(getter, 'a', getter);
/******/ return getter;
/******/ };
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/ __w_pdfjs_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ // __webpack_public_path__
/******/ __w_pdfjs_require__.p = "";
/******/
/******/ // Load entry module and return exports
/******/ return __w_pdfjs_require__(__w_pdfjs_require__.s = 14);
/******/ })
@ -3735,8 +3735,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() { @@ -3735,8 +3735,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
}
};
}();
exports.version = '1.7.348';
exports.build = '754c4bd0';
exports.version = '1.7.351';
exports.build = 'a544a3b4';
exports.getDocument = getDocument;
exports.PDFDataRangeTransport = PDFDataRangeTransport;
exports.PDFWorker = PDFWorker;
@ -5768,8 +5768,8 @@ if (!globalScope.PDFJS) { @@ -5768,8 +5768,8 @@ if (!globalScope.PDFJS) {
globalScope.PDFJS = {};
}
var PDFJS = globalScope.PDFJS;
PDFJS.version = '1.7.348';
PDFJS.build = '754c4bd0';
PDFJS.version = '1.7.351';
PDFJS.build = 'a544a3b4';
PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) {
sharedUtil.setVerbosityLevel(PDFJS.verbosity);
@ -9855,8 +9855,8 @@ if (typeof PDFJS === 'undefined' || !PDFJS.compatibilityChecked) { @@ -9855,8 +9855,8 @@ if (typeof PDFJS === 'undefined' || !PDFJS.compatibilityChecked) {
"use strict";
var pdfjsVersion = '1.7.348';
var pdfjsBuild = '754c4bd0';
var pdfjsVersion = '1.7.351';
var pdfjsBuild = 'a544a3b4';
var pdfjsSharedUtil = __w_pdfjs_require__(0);
var pdfjsDisplayGlobal = __w_pdfjs_require__(9);
var pdfjsDisplayAPI = __w_pdfjs_require__(3);

10
build/pdf.min.js vendored

File diff suppressed because one or more lines are too long

34
build/pdf.worker.js vendored

@ -26,41 +26,41 @@ @@ -26,41 +26,41 @@
return /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __w_pdfjs_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;
/******/
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __w_pdfjs_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __w_pdfjs_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __w_pdfjs_require__.c = installedModules;
/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __w_pdfjs_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports
/******/ __w_pdfjs_require__.d = function(exports, name, getter) {
/******/ if(!__w_pdfjs_require__.o(exports, name)) {
@ -71,7 +71,7 @@ return /******/ (function(modules) { // webpackBootstrap @@ -71,7 +71,7 @@ return /******/ (function(modules) { // webpackBootstrap
/******/ });
/******/ }
/******/ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __w_pdfjs_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
@ -80,13 +80,13 @@ return /******/ (function(modules) { // webpackBootstrap @@ -80,13 +80,13 @@ return /******/ (function(modules) { // webpackBootstrap
/******/ __w_pdfjs_require__.d(getter, 'a', getter);
/******/ return getter;
/******/ };
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/ __w_pdfjs_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ // __webpack_public_path__
/******/ __w_pdfjs_require__.p = "";
/******/
/******/ // Load entry module and return exports
/******/ return __w_pdfjs_require__(__w_pdfjs_require__.s = 37);
/******/ })
@ -51072,8 +51072,8 @@ if (typeof PDFJS === 'undefined' || !PDFJS.compatibilityChecked) { @@ -51072,8 +51072,8 @@ if (typeof PDFJS === 'undefined' || !PDFJS.compatibilityChecked) {
"use strict";
var pdfjsVersion = '1.7.348';
var pdfjsBuild = '754c4bd0';
var pdfjsVersion = '1.7.351';
var pdfjsBuild = 'a544a3b4';
var pdfjsCoreWorker = __w_pdfjs_require__(8);
{
__w_pdfjs_require__(19);

38
build/pdf.worker.min.js vendored

File diff suppressed because one or more lines are too long

4
lib/display/api.js

@ -1374,8 +1374,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() { @@ -1374,8 +1374,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
}
};
}();
exports.version = '1.7.348';
exports.build = '754c4bd0';
exports.version = '1.7.351';
exports.build = 'a544a3b4';
exports.getDocument = getDocument;
exports.PDFDataRangeTransport = PDFDataRangeTransport;
exports.PDFWorker = PDFWorker;

4
lib/display/global.js

@ -30,8 +30,8 @@ if (!globalScope.PDFJS) { @@ -30,8 +30,8 @@ if (!globalScope.PDFJS) {
globalScope.PDFJS = {};
}
var PDFJS = globalScope.PDFJS;
PDFJS.version = '1.7.348';
PDFJS.build = '754c4bd0';
PDFJS.version = '1.7.351';
PDFJS.build = 'a544a3b4';
PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) {
sharedUtil.setVerbosityLevel(PDFJS.verbosity);

4
lib/pdf.js

@ -13,8 +13,8 @@ @@ -13,8 +13,8 @@
* limitations under the License.
*/
'use strict';
var pdfjsVersion = '1.7.348';
var pdfjsBuild = '754c4bd0';
var pdfjsVersion = '1.7.351';
var pdfjsBuild = 'a544a3b4';
var pdfjsSharedUtil = require('./shared/util.js');
var pdfjsDisplayGlobal = require('./display/global.js');
var pdfjsDisplayAPI = require('./display/api.js');

4
lib/pdf.worker.js vendored

@ -13,8 +13,8 @@ @@ -13,8 +13,8 @@
* limitations under the License.
*/
'use strict';
var pdfjsVersion = '1.7.348';
var pdfjsBuild = '754c4bd0';
var pdfjsVersion = '1.7.351';
var pdfjsBuild = 'a544a3b4';
var pdfjsCoreWorker = require('./core/worker.js');
{
require('./core/network.js');

5
lib/web/pdf_attachment_viewer.js

@ -26,10 +26,7 @@ var PDFAttachmentViewer = function PDFAttachmentViewerClosure() { @@ -26,10 +26,7 @@ var PDFAttachmentViewer = function PDFAttachmentViewerClosure() {
PDFAttachmentViewer.prototype = {
reset: function PDFAttachmentViewer_reset(keepRenderedCapability) {
this.attachments = null;
var container = this.container;
while (container.firstChild) {
container.removeChild(container.firstChild);
}
this.container.textContent = '';
if (!keepRenderedCapability) {
this._renderedCapability = pdfjsLib.createPromiseCapability();
}

6
lib/web/pdf_outline_viewer.js

@ -28,10 +28,8 @@ var PDFOutlineViewer = function PDFOutlineViewerClosure() { @@ -28,10 +28,8 @@ var PDFOutlineViewer = function PDFOutlineViewerClosure() {
reset: function PDFOutlineViewer_reset() {
this.outline = null;
this.lastToggleIsShow = true;
var container = this.container;
while (container.firstChild) {
container.removeChild(container.firstChild);
}
this.container.textContent = '';
this.container.classList.remove('outlineWithDeepNesting');
},
_dispatchEvent: function PDFOutlineViewer_dispatchEvent(outlineCount) {
this.eventBus.dispatch('outlineloaded', {

2
package.json

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

30
web/compatibility.js

@ -26,41 +26,41 @@ @@ -26,41 +26,41 @@
return /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;
/******/
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
@ -71,7 +71,7 @@ return /******/ (function(modules) { // webpackBootstrap @@ -71,7 +71,7 @@ return /******/ (function(modules) { // webpackBootstrap
/******/ });
/******/ }
/******/ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
@ -80,13 +80,13 @@ return /******/ (function(modules) { // webpackBootstrap @@ -80,13 +80,13 @@ return /******/ (function(modules) { // webpackBootstrap
/******/ __webpack_require__.d(getter, 'a', getter);
/******/ return getter;
/******/ };
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 2);
/******/ })

30
web/pdf_viewer.js

@ -26,41 +26,41 @@ @@ -26,41 +26,41 @@
return /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __w_pdfjs_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;
/******/
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __w_pdfjs_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __w_pdfjs_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __w_pdfjs_require__.c = installedModules;
/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __w_pdfjs_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports
/******/ __w_pdfjs_require__.d = function(exports, name, getter) {
/******/ if(!__w_pdfjs_require__.o(exports, name)) {
@ -71,7 +71,7 @@ return /******/ (function(modules) { // webpackBootstrap @@ -71,7 +71,7 @@ return /******/ (function(modules) { // webpackBootstrap
/******/ });
/******/ }
/******/ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __w_pdfjs_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
@ -80,13 +80,13 @@ return /******/ (function(modules) { // webpackBootstrap @@ -80,13 +80,13 @@ return /******/ (function(modules) { // webpackBootstrap
/******/ __w_pdfjs_require__.d(getter, 'a', getter);
/******/ return getter;
/******/ };
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/ __w_pdfjs_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ // __webpack_public_path__
/******/ __w_pdfjs_require__.p = "";
/******/
/******/ // Load entry module and return exports
/******/ return __w_pdfjs_require__(__w_pdfjs_require__.s = 12);
/******/ })

Loading…
Cancel
Save