Browse Source

PDF.js version 2.0.301 - See mozilla/pdf.js@fd242ad2c2191f5de32f6b158e15db8e012f9467

master v2.0.301
pdfjsbot 7 years ago
parent
commit
260cdbe3c1
  1. 2
      bower.json
  2. 16
      build/pdf.combined.js
  3. 2
      build/pdf.combined.js.map
  4. 14
      build/pdf.js
  5. 2
      build/pdf.js.map
  6. 2
      build/pdf.min.js
  7. 6
      build/pdf.worker.js
  8. 2
      build/pdf.worker.js.map
  9. 2
      build/pdf.worker.min.js
  10. 2
      lib/core/worker.js
  11. 6
      lib/display/api.js
  12. 4
      lib/display/global.js
  13. 4
      lib/pdf.js
  14. 4
      lib/pdf.worker.js
  15. 15
      lib/web/chromecom.js
  16. 4
      lib/web/pdf_history.js
  17. 2
      package.json
  18. 4
      web/pdf_viewer.js
  19. 2
      web/pdf_viewer.js.map

2
bower.json

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

16
build/pdf.combined.js

@ -11633,7 +11633,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) { @@ -11633,7 +11633,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) {
if (worker.destroyed) {
return Promise.reject(new Error('Worker was destroyed'));
}
var apiVersion = '2.0.295';
var apiVersion = '2.0.301';
source.disableRange = (0, _dom_utils.getDefaultSetting)('disableRange');
source.disableAutoFetch = (0, _dom_utils.getDefaultSetting)('disableAutoFetch');
source.disableStream = (0, _dom_utils.getDefaultSetting)('disableStream');
@ -12928,8 +12928,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() { @@ -12928,8 +12928,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() {
}();
var version, build;
{
exports.version = version = '2.0.295';
exports.build = build = '28c87ce9';
exports.version = version = '2.0.301';
exports.build = build = 'fd242ad2';
}
exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort;
@ -27269,8 +27269,8 @@ exports.SVGGraphics = SVGGraphics; @@ -27269,8 +27269,8 @@ exports.SVGGraphics = SVGGraphics;
"use strict";
var pdfjsVersion = '2.0.295';
var pdfjsBuild = '28c87ce9';
var pdfjsVersion = '2.0.301';
var pdfjsBuild = 'fd242ad2';
var pdfjsSharedUtil = __w_pdfjs_require__(0);
var pdfjsDisplayGlobal = __w_pdfjs_require__(133);
var pdfjsDisplayAPI = __w_pdfjs_require__(66);
@ -32473,8 +32473,8 @@ if (!_global_scope2.default.PDFJS) { @@ -32473,8 +32473,8 @@ if (!_global_scope2.default.PDFJS) {
}
var PDFJS = _global_scope2.default.PDFJS;
{
PDFJS.version = '2.0.295';
PDFJS.build = '28c87ce9';
PDFJS.version = '2.0.301';
PDFJS.build = 'fd242ad2';
}
PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) {
@ -35845,7 +35845,7 @@ var WorkerMessageHandler = { @@ -35845,7 +35845,7 @@ var WorkerMessageHandler = {
var cancelXHRs = null;
var WorkerTasks = [];
var apiVersion = docParams.apiVersion;
var workerVersion = '2.0.295';
var workerVersion = '2.0.301';
if (apiVersion !== null && apiVersion !== workerVersion) {
throw new Error('The API version "' + apiVersion + '" does not match ' + ('the Worker version "' + workerVersion + '".'));
}

2
build/pdf.combined.js.map

File diff suppressed because one or more lines are too long

14
build/pdf.js

@ -3313,7 +3313,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) { @@ -3313,7 +3313,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) {
if (worker.destroyed) {
return Promise.reject(new Error('Worker was destroyed'));
}
var apiVersion = '2.0.295';
var apiVersion = '2.0.301';
source.disableRange = (0, _dom_utils.getDefaultSetting)('disableRange');
source.disableAutoFetch = (0, _dom_utils.getDefaultSetting)('disableAutoFetch');
source.disableStream = (0, _dom_utils.getDefaultSetting)('disableStream');
@ -4689,8 +4689,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() { @@ -4689,8 +4689,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() {
}();
var version, build;
{
exports.version = version = '2.0.295';
exports.build = build = '28c87ce9';
exports.version = version = '2.0.301';
exports.build = build = 'fd242ad2';
}
exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort;
@ -7448,8 +7448,8 @@ exports.SVGGraphics = SVGGraphics; @@ -7448,8 +7448,8 @@ exports.SVGGraphics = SVGGraphics;
"use strict";
var pdfjsVersion = '2.0.295';
var pdfjsBuild = '28c87ce9';
var pdfjsVersion = '2.0.301';
var pdfjsBuild = 'fd242ad2';
var pdfjsSharedUtil = __w_pdfjs_require__(0);
var pdfjsDisplayGlobal = __w_pdfjs_require__(115);
var pdfjsDisplayAPI = __w_pdfjs_require__(58);
@ -12652,8 +12652,8 @@ if (!_global_scope2.default.PDFJS) { @@ -12652,8 +12652,8 @@ if (!_global_scope2.default.PDFJS) {
}
var PDFJS = _global_scope2.default.PDFJS;
{
PDFJS.version = '2.0.295';
PDFJS.build = '28c87ce9';
PDFJS.version = '2.0.301';
PDFJS.build = 'fd242ad2';
}
PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) {

2
build/pdf.js.map

File diff suppressed because one or more lines are too long

2
build/pdf.min.js vendored

File diff suppressed because one or more lines are too long

6
build/pdf.worker.js vendored

@ -22498,8 +22498,8 @@ exports.PostScriptCompiler = PostScriptCompiler; @@ -22498,8 +22498,8 @@ exports.PostScriptCompiler = PostScriptCompiler;
"use strict";
var pdfjsVersion = '2.0.295';
var pdfjsBuild = '28c87ce9';
var pdfjsVersion = '2.0.301';
var pdfjsBuild = 'fd242ad2';
var pdfjsCoreWorker = __w_pdfjs_require__(74);
exports.WorkerMessageHandler = pdfjsCoreWorker.WorkerMessageHandler;
@ -22712,7 +22712,7 @@ var WorkerMessageHandler = { @@ -22712,7 +22712,7 @@ var WorkerMessageHandler = {
var cancelXHRs = null;
var WorkerTasks = [];
var apiVersion = docParams.apiVersion;
var workerVersion = '2.0.295';
var workerVersion = '2.0.301';
if (apiVersion !== null && apiVersion !== workerVersion) {
throw new Error('The API version "' + apiVersion + '" does not match ' + ('the Worker version "' + workerVersion + '".'));
}

2
build/pdf.worker.js.map vendored

File diff suppressed because one or more lines are too long

2
build/pdf.worker.min.js vendored

File diff suppressed because one or more lines are too long

2
lib/core/worker.js

@ -223,7 +223,7 @@ var WorkerMessageHandler = { @@ -223,7 +223,7 @@ var WorkerMessageHandler = {
var cancelXHRs = null;
var WorkerTasks = [];
var apiVersion = docParams.apiVersion;
var workerVersion = '2.0.295';
var workerVersion = '2.0.301';
if (apiVersion !== null && apiVersion !== workerVersion) {
throw new Error('The API version "' + apiVersion + '" does not match ' + ('the Worker version "' + workerVersion + '".'));
}

6
lib/display/api.js

@ -178,7 +178,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) { @@ -178,7 +178,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) {
if (worker.destroyed) {
return Promise.reject(new Error('Worker was destroyed'));
}
var apiVersion = '2.0.295';
var apiVersion = '2.0.301';
source.disableRange = (0, _dom_utils.getDefaultSetting)('disableRange');
source.disableAutoFetch = (0, _dom_utils.getDefaultSetting)('disableAutoFetch');
source.disableStream = (0, _dom_utils.getDefaultSetting)('disableStream');
@ -1554,8 +1554,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() { @@ -1554,8 +1554,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() {
}();
var version, build;
{
exports.version = version = '2.0.295';
exports.build = build = '28c87ce9';
exports.version = version = '2.0.301';
exports.build = build = 'fd242ad2';
}
exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort;

4
lib/display/global.js

@ -51,8 +51,8 @@ if (!_global_scope2.default.PDFJS) { @@ -51,8 +51,8 @@ if (!_global_scope2.default.PDFJS) {
}
var PDFJS = _global_scope2.default.PDFJS;
{
PDFJS.version = '2.0.295';
PDFJS.build = '28c87ce9';
PDFJS.version = '2.0.301';
PDFJS.build = 'fd242ad2';
}
PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) {

4
lib/pdf.js

@ -21,8 +21,8 @@ @@ -21,8 +21,8 @@
*/
'use strict';
var pdfjsVersion = '2.0.295';
var pdfjsBuild = '28c87ce9';
var pdfjsVersion = '2.0.301';
var pdfjsBuild = 'fd242ad2';
var pdfjsSharedUtil = require('./shared/util.js');
var pdfjsDisplayGlobal = require('./display/global.js');
var pdfjsDisplayAPI = require('./display/api.js');

4
lib/pdf.worker.js vendored

@ -21,7 +21,7 @@ @@ -21,7 +21,7 @@
*/
'use strict';
var pdfjsVersion = '2.0.295';
var pdfjsBuild = '28c87ce9';
var pdfjsVersion = '2.0.301';
var pdfjsBuild = 'fd242ad2';
var pdfjsCoreWorker = require('./core/worker.js');
exports.WorkerMessageHandler = pdfjsCoreWorker.WorkerMessageHandler;

15
lib/web/chromecom.js

@ -36,8 +36,6 @@ var _download_manager = require('./download_manager'); @@ -36,8 +36,6 @@ var _download_manager = require('./download_manager');
var _genericl10n = require('./genericl10n');
var _pdf = require('../pdf');
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
@ -66,19 +64,6 @@ var ChromeCom = { @@ -66,19 +64,6 @@ var ChromeCom = {
},
resolvePDFFile: function resolvePDFFile(file, overlayManager, callback) {
file = file.replace(/^drive:/i, 'filesystem:' + location.origin + '/external/');
if (/^filesystem:/.test(file) && !_pdf.PDFJS.disableWorker) {
var resolveLocalFileSystemURL = window.resolveLocalFileSystemURL || window.webkitResolveLocalFileSystemURL;
resolveLocalFileSystemURL(file, function onResolvedFSURL(fileEntry) {
fileEntry.file(function (fileObject) {
var blobUrl = URL.createObjectURL(fileObject);
callback(blobUrl, fileObject.size);
});
}, function onFileSystemError(error) {
console.warn('Cannot resolve file ' + file + ', ' + error.name + ' ' + error.message);
callback(file);
});
return;
}
if (/^https?:/.test(file)) {
setReferer(file, function () {
callback(file);

4
lib/web/pdf_history.js

@ -226,10 +226,10 @@ var PDFHistory = function () { @@ -226,10 +226,10 @@ var PDFHistory = function () {
};
this._updateInternalState(destination, newState.uid);
if (shouldReplace) {
window.history.replaceState(newState, '', document.URL);
window.history.replaceState(newState, '');
} else {
this._maxUid = this._uid;
window.history.pushState(newState, '', document.URL);
window.history.pushState(newState, '');
}
}
}, {

2
package.json

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

4
web/pdf_viewer.js

@ -4690,10 +4690,10 @@ var PDFHistory = function () { @@ -4690,10 +4690,10 @@ var PDFHistory = function () {
};
this._updateInternalState(destination, newState.uid);
if (shouldReplace) {
window.history.replaceState(newState, '', document.URL);
window.history.replaceState(newState, '');
} else {
this._maxUid = this._uid;
window.history.pushState(newState, '', document.URL);
window.history.pushState(newState, '');
}
}
}, {

2
web/pdf_viewer.js.map

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save