Browse Source

PDF.js version 1.8.454 - See mozilla/pdf.js@7215e9c52e490ba06ff3529d6cf6a32e86e01b0a

master v1.8.454
pdfjsbot 8 years ago
parent
commit
db13a7b26b
  1. 2
      bower.json
  2. 12
      build/pdf.combined.js
  3. 2
      build/pdf.combined.js.map
  4. 12
      build/pdf.js
  5. 2
      build/pdf.js.map
  6. 4
      build/pdf.min.js
  7. 4
      build/pdf.worker.js
  8. 2
      build/pdf.worker.js.map
  9. 4
      lib/display/api.js
  10. 4
      lib/display/global.js
  11. 4
      lib/pdf.js
  12. 4
      lib/pdf.worker.js
  13. 93
      lib/web/app.js
  14. 2
      package.json

2
bower.json

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

12
build/pdf.combined.js

@ -13077,8 +13077,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() { @@ -13077,8 +13077,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
}();
var version, build;
{
exports.version = version = '1.8.452';
exports.build = build = '0c93dee0';
exports.version = version = '1.8.454';
exports.build = build = '7215e9c5';
}
exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort;
@ -28427,8 +28427,8 @@ if (!_util.globalScope.PDFJS) { @@ -28427,8 +28427,8 @@ if (!_util.globalScope.PDFJS) {
}
var PDFJS = _util.globalScope.PDFJS;
{
PDFJS.version = '1.8.452';
PDFJS.build = '0c93dee0';
PDFJS.version = '1.8.454';
PDFJS.build = '7215e9c5';
}
PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) {
@ -47045,8 +47045,8 @@ exports.TilingPattern = TilingPattern; @@ -47045,8 +47045,8 @@ exports.TilingPattern = TilingPattern;
"use strict";
var pdfjsVersion = '1.8.452';
var pdfjsBuild = '0c93dee0';
var pdfjsVersion = '1.8.454';
var pdfjsBuild = '7215e9c5';
var pdfjsSharedUtil = __w_pdfjs_require__(0);
var pdfjsDisplayGlobal = __w_pdfjs_require__(26);
var pdfjsDisplayAPI = __w_pdfjs_require__(10);

2
build/pdf.combined.js.map

File diff suppressed because one or more lines are too long

12
build/pdf.js

@ -3806,8 +3806,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() { @@ -3806,8 +3806,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
}();
var version, build;
{
exports.version = version = '1.8.452';
exports.build = build = '0c93dee0';
exports.version = version = '1.8.454';
exports.build = build = '7215e9c5';
}
exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort;
@ -5780,8 +5780,8 @@ if (!_util.globalScope.PDFJS) { @@ -5780,8 +5780,8 @@ if (!_util.globalScope.PDFJS) {
}
var PDFJS = _util.globalScope.PDFJS;
{
PDFJS.version = '1.8.452';
PDFJS.build = '0c93dee0';
PDFJS.version = '1.8.454';
PDFJS.build = '7215e9c5';
}
PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) {
@ -11320,8 +11320,8 @@ exports.TilingPattern = TilingPattern; @@ -11320,8 +11320,8 @@ exports.TilingPattern = TilingPattern;
"use strict";
var pdfjsVersion = '1.8.452';
var pdfjsBuild = '0c93dee0';
var pdfjsVersion = '1.8.454';
var pdfjsBuild = '7215e9c5';
var pdfjsSharedUtil = __w_pdfjs_require__(0);
var pdfjsDisplayGlobal = __w_pdfjs_require__(9);
var pdfjsDisplayAPI = __w_pdfjs_require__(3);

2
build/pdf.js.map

File diff suppressed because one or more lines are too long

4
build/pdf.min.js vendored

File diff suppressed because one or more lines are too long

4
build/pdf.worker.js vendored

@ -40319,8 +40319,8 @@ exports.Type1Parser = Type1Parser; @@ -40319,8 +40319,8 @@ exports.Type1Parser = Type1Parser;
"use strict";
var pdfjsVersion = '1.8.452';
var pdfjsBuild = '0c93dee0';
var pdfjsVersion = '1.8.454';
var pdfjsBuild = '7215e9c5';
var pdfjsCoreWorker = __w_pdfjs_require__(8);
{
__w_pdfjs_require__(19);

2
build/pdf.worker.js.map vendored

File diff suppressed because one or more lines are too long

4
lib/display/api.js

@ -1443,8 +1443,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() { @@ -1443,8 +1443,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
}();
var version, build;
{
exports.version = version = '1.8.452';
exports.build = build = '0c93dee0';
exports.version = version = '1.8.454';
exports.build = build = '7215e9c5';
}
exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort;

4
lib/display/global.js

@ -39,8 +39,8 @@ if (!_util.globalScope.PDFJS) { @@ -39,8 +39,8 @@ if (!_util.globalScope.PDFJS) {
}
var PDFJS = _util.globalScope.PDFJS;
{
PDFJS.version = '1.8.452';
PDFJS.build = '0c93dee0';
PDFJS.version = '1.8.454';
PDFJS.build = '7215e9c5';
}
PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) {

4
lib/pdf.js

@ -14,8 +14,8 @@ @@ -14,8 +14,8 @@
*/
'use strict';
var pdfjsVersion = '1.8.452';
var pdfjsBuild = '0c93dee0';
var pdfjsVersion = '1.8.454';
var pdfjsBuild = '7215e9c5';
var pdfjsSharedUtil = require('./shared/util.js');
var pdfjsDisplayGlobal = require('./display/global.js');
var pdfjsDisplayAPI = require('./display/api.js');

4
lib/pdf.worker.js vendored

@ -14,8 +14,8 @@ @@ -14,8 +14,8 @@
*/
'use strict';
var pdfjsVersion = '1.8.452';
var pdfjsBuild = '0c93dee0';
var pdfjsVersion = '1.8.454';
var pdfjsBuild = '7215e9c5';
var pdfjsCoreWorker = require('./core/worker.js');
{
require('./core/network.js');

93
lib/web/app.js

@ -137,6 +137,7 @@ var PDFViewerApplication = { @@ -137,6 +137,7 @@ var PDFViewerApplication = {
url: '',
baseUrl: '',
externalServices: DefaultExternalServices,
_boundEvents: {},
initialize: function pdfViewInitialize(appConfig) {
var _this = this;
@ -882,12 +883,14 @@ var PDFViewerApplication = { @@ -882,12 +883,14 @@ var PDFViewerApplication = {
}
this.pdfPresentationMode.request();
},
bindEvents: function pdfViewBindEvents() {
bindEvents: function bindEvents() {
var eventBus = this.eventBus;
this._boundEvents.beforePrint = this.beforePrint.bind(this);
this._boundEvents.afterPrint = this.afterPrint.bind(this);
eventBus.on('resize', webViewerResize);
eventBus.on('hashchange', webViewerHashchange);
eventBus.on('beforeprint', this.beforePrint.bind(this));
eventBus.on('afterprint', this.afterPrint.bind(this));
eventBus.on('beforeprint', this._boundEvents.beforePrint);
eventBus.on('afterprint', this._boundEvents.afterPrint);
eventBus.on('pagerendered', webViewerPageRendered);
eventBus.on('textlayerrendered', webViewerTextLayerRendered);
eventBus.on('updateviewarea', webViewerUpdateViewarea);
@ -916,30 +919,86 @@ var PDFViewerApplication = { @@ -916,30 +919,86 @@ var PDFViewerApplication = {
eventBus.on('findfromurlhash', webViewerFindFromUrlHash);
eventBus.on('fileinputchange', webViewerFileInputChange);
},
bindWindowEvents: function pdfViewBindWindowEvents() {
bindWindowEvents: function bindWindowEvents() {
var eventBus = this.eventBus;
window.addEventListener('wheel', webViewerWheel);
window.addEventListener('click', webViewerClick);
window.addEventListener('keydown', webViewerKeyDown);
window.addEventListener('resize', function windowResize() {
this._boundEvents.windowResize = function () {
eventBus.dispatch('resize');
});
window.addEventListener('hashchange', function windowHashChange() {
};
this._boundEvents.windowHashChange = function () {
eventBus.dispatch('hashchange', { hash: document.location.hash.substring(1) });
});
window.addEventListener('beforeprint', function windowBeforePrint() {
};
this._boundEvents.windowBeforePrint = function () {
eventBus.dispatch('beforeprint');
});
window.addEventListener('afterprint', function windowAfterPrint() {
};
this._boundEvents.windowAfterPrint = function () {
eventBus.dispatch('afterprint');
});
window.addEventListener('change', function windowChange(evt) {
};
window.addEventListener('wheel', webViewerWheel);
window.addEventListener('click', webViewerClick);
window.addEventListener('keydown', webViewerKeyDown);
window.addEventListener('resize', this._boundEvents.windowResize);
window.addEventListener('hashchange', this._boundEvents.windowHashChange);
window.addEventListener('beforeprint', this._boundEvents.windowBeforePrint);
window.addEventListener('afterprint', this._boundEvents.windowAfterPrint);
this._boundEvents.windowChange = function (evt) {
var files = evt.target.files;
if (!files || files.length === 0) {
return;
}
eventBus.dispatch('fileinputchange', { fileInput: evt.target });
});
};
window.addEventListener('change', this._boundEvents.windowChange);
},
unbindEvents: function unbindEvents() {
var eventBus = this.eventBus;
eventBus.off('resize', webViewerResize);
eventBus.off('hashchange', webViewerHashchange);
eventBus.off('beforeprint', this._boundEvents.beforePrint);
eventBus.off('afterprint', this._boundEvents.afterPrint);
eventBus.off('pagerendered', webViewerPageRendered);
eventBus.off('textlayerrendered', webViewerTextLayerRendered);
eventBus.off('updateviewarea', webViewerUpdateViewarea);
eventBus.off('pagechanging', webViewerPageChanging);
eventBus.off('scalechanging', webViewerScaleChanging);
eventBus.off('sidebarviewchanged', webViewerSidebarViewChanged);
eventBus.off('pagemode', webViewerPageMode);
eventBus.off('namedaction', webViewerNamedAction);
eventBus.off('presentationmodechanged', webViewerPresentationModeChanged);
eventBus.off('presentationmode', webViewerPresentationMode);
eventBus.off('openfile', webViewerOpenFile);
eventBus.off('print', webViewerPrint);
eventBus.off('download', webViewerDownload);
eventBus.off('firstpage', webViewerFirstPage);
eventBus.off('lastpage', webViewerLastPage);
eventBus.off('nextpage', webViewerNextPage);
eventBus.off('previouspage', webViewerPreviousPage);
eventBus.off('zoomin', webViewerZoomIn);
eventBus.off('zoomout', webViewerZoomOut);
eventBus.off('pagenumberchanged', webViewerPageNumberChanged);
eventBus.off('scalechanged', webViewerScaleChanged);
eventBus.off('rotatecw', webViewerRotateCw);
eventBus.off('rotateccw', webViewerRotateCcw);
eventBus.off('documentproperties', webViewerDocumentProperties);
eventBus.off('find', webViewerFind);
eventBus.off('findfromurlhash', webViewerFindFromUrlHash);
eventBus.off('fileinputchange', webViewerFileInputChange);
this._boundEvents.beforePrint = null;
this._boundEvents.afterPrint = null;
},
unbindWindowEvents: function unbindWindowEvents() {
window.removeEventListener('wheel', webViewerWheel);
window.removeEventListener('click', webViewerClick);
window.removeEventListener('keydown', webViewerKeyDown);
window.removeEventListener('resize', this._boundEvents.windowResize);
window.removeEventListener('hashchange', this._boundEvents.windowHashChange);
window.removeEventListener('beforeprint', this._boundEvents.windowBeforePrint);
window.removeEventListener('afterprint', this._boundEvents.windowAfterPrint);
window.removeEventListener('change', this._boundEvents.windowChange);
this._boundEvents.windowChange = null;
this._boundEvents.windowResize = null;
this._boundEvents.windowHashChange = null;
this._boundEvents.windowBeforePrint = null;
this._boundEvents.windowAfterPrint = null;
}
};
var validateFileURL;

2
package.json

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

Loading…
Cancel
Save