Browse Source

PDF.js version 1.7.310 - See mozilla/pdf.js@72a0916101b1a7f875ec3cc5a50bec13a8b0b70e

master v1.7.310
pdfjsbot 8 years ago
parent
commit
218f4a5f7f
  1. 2
      bower.json
  2. 12
      build/pdf.combined.js
  3. 12
      build/pdf.js
  4. 4
      build/pdf.min.js
  5. 4
      build/pdf.worker.js
  6. 2
      package.json
  7. 8
      web/compatibility.js
  8. 8
      web/pdf_viewer.js

2
bower.json

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

12
build/pdf.combined.js

@ -20840,8 +20840,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
} }
}; };
}(); }();
exports.version = '1.7.308'; exports.version = '1.7.310';
exports.build = 'cf73f4bc'; exports.build = '72a09161';
exports.getDocument = getDocument; exports.getDocument = getDocument;
exports.PDFDataRangeTransport = PDFDataRangeTransport; exports.PDFDataRangeTransport = PDFDataRangeTransport;
exports.PDFWorker = PDFWorker; exports.PDFWorker = PDFWorker;
@ -39618,8 +39618,8 @@ if (!globalScope.PDFJS) {
globalScope.PDFJS = {}; globalScope.PDFJS = {};
} }
var PDFJS = globalScope.PDFJS; var PDFJS = globalScope.PDFJS;
PDFJS.version = '1.7.308'; PDFJS.version = '1.7.310';
PDFJS.build = 'cf73f4bc'; PDFJS.build = '72a09161';
PDFJS.pdfBug = false; PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) { if (PDFJS.verbosity !== undefined) {
sharedUtil.setVerbosityLevel(PDFJS.verbosity); sharedUtil.setVerbosityLevel(PDFJS.verbosity);
@ -57321,8 +57321,8 @@ exports.TilingPattern = TilingPattern;
"use strict"; "use strict";
var pdfjsVersion = '1.7.308'; var pdfjsVersion = '1.7.310';
var pdfjsBuild = 'cf73f4bc'; var pdfjsBuild = '72a09161';
var pdfjsSharedUtil = __w_pdfjs_require__(0); var pdfjsSharedUtil = __w_pdfjs_require__(0);
var pdfjsDisplayGlobal = __w_pdfjs_require__(25); var pdfjsDisplayGlobal = __w_pdfjs_require__(25);
var pdfjsDisplayAPI = __w_pdfjs_require__(10); var pdfjsDisplayAPI = __w_pdfjs_require__(10);

12
build/pdf.js

@ -4553,8 +4553,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
} }
}; };
}(); }();
exports.version = '1.7.308'; exports.version = '1.7.310';
exports.build = 'cf73f4bc'; exports.build = '72a09161';
exports.getDocument = getDocument; exports.getDocument = getDocument;
exports.PDFDataRangeTransport = PDFDataRangeTransport; exports.PDFDataRangeTransport = PDFDataRangeTransport;
exports.PDFWorker = PDFWorker; exports.PDFWorker = PDFWorker;
@ -6570,8 +6570,8 @@ if (!globalScope.PDFJS) {
globalScope.PDFJS = {}; globalScope.PDFJS = {};
} }
var PDFJS = globalScope.PDFJS; var PDFJS = globalScope.PDFJS;
PDFJS.version = '1.7.308'; PDFJS.version = '1.7.310';
PDFJS.build = 'cf73f4bc'; PDFJS.build = '72a09161';
PDFJS.pdfBug = false; PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) { if (PDFJS.verbosity !== undefined) {
sharedUtil.setVerbosityLevel(PDFJS.verbosity); sharedUtil.setVerbosityLevel(PDFJS.verbosity);
@ -9253,8 +9253,8 @@ exports.TilingPattern = TilingPattern;
"use strict"; "use strict";
var pdfjsVersion = '1.7.308'; var pdfjsVersion = '1.7.310';
var pdfjsBuild = 'cf73f4bc'; var pdfjsBuild = '72a09161';
var pdfjsSharedUtil = __w_pdfjs_require__(0); var pdfjsSharedUtil = __w_pdfjs_require__(0);
var pdfjsDisplayGlobal = __w_pdfjs_require__(8); var pdfjsDisplayGlobal = __w_pdfjs_require__(8);
var pdfjsDisplayAPI = __w_pdfjs_require__(3); var pdfjsDisplayAPI = __w_pdfjs_require__(3);

4
build/pdf.min.js vendored

File diff suppressed because one or more lines are too long

4
build/pdf.worker.js vendored

@ -50524,8 +50524,8 @@ exports.Type1Parser = Type1Parser;
"use strict"; "use strict";
var pdfjsVersion = '1.7.308'; var pdfjsVersion = '1.7.310';
var pdfjsBuild = 'cf73f4bc'; var pdfjsBuild = '72a09161';
var pdfjsCoreWorker = __w_pdfjs_require__(8); var pdfjsCoreWorker = __w_pdfjs_require__(8);
{ {
__w_pdfjs_require__(18); __w_pdfjs_require__(18);

2
package.json

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

8
web/compatibility.js

@ -26,6 +26,7 @@ var isAndroidPre3 = /Android\s[0-2][^\d]/.test(userAgent);
var isAndroidPre5 = /Android\s[0-4][^\d]/.test(userAgent); var isAndroidPre5 = /Android\s[0-4][^\d]/.test(userAgent);
var isChrome = userAgent.indexOf('Chrom') >= 0; var isChrome = userAgent.indexOf('Chrom') >= 0;
var isChromeWithRangeBug = /Chrome\/(39|40)\./.test(userAgent); var isChromeWithRangeBug = /Chrome\/(39|40)\./.test(userAgent);
var isIOSChrome = userAgent.indexOf('CriOS') >= 0;
var isIE = userAgent.indexOf('Trident') >= 0; var isIE = userAgent.indexOf('Trident') >= 0;
var isIOS = /\b(iPad|iPhone|iPod)(?=;)/.test(userAgent); var isIOS = /\b(iPad|iPhone|iPod)(?=;)/.test(userAgent);
var isOpera = userAgent.indexOf('Opera') >= 0; var isOpera = userAgent.indexOf('Opera') >= 0;
@ -456,10 +457,11 @@ if (typeof PDFJS === 'undefined') {
})(); })();
// Checks if possible to use URL.createObjectURL() // Checks if possible to use URL.createObjectURL()
// Support: IE // Support: IE, Chrome on iOS
(function checkOnBlobSupport() { (function checkOnBlobSupport() {
// sometimes IE loosing the data created with createObjectURL(), see #3977 // sometimes IE and Chrome on iOS loosing the data created with
if (isIE) { // createObjectURL(), see #3977 and #8081
if (isIE || isIOSChrome) {
PDFJS.disableCreateObjectURL = true; PDFJS.disableCreateObjectURL = true;
} }
})(); })();

8
web/pdf_viewer.js

@ -1970,16 +1970,16 @@ DownloadManager.prototype = {
download(blobUrl, filename); download(blobUrl, filename);
}, },
download: function DownloadManager_download(blob, url, filename) { download: function DownloadManager_download(blob, url, filename) {
if (!URL) {
this.downloadUrl(url, filename);
return;
}
if (navigator.msSaveBlob) { if (navigator.msSaveBlob) {
if (!navigator.msSaveBlob(blob, filename)) { if (!navigator.msSaveBlob(blob, filename)) {
this.downloadUrl(url, filename); this.downloadUrl(url, filename);
} }
return; return;
} }
if (pdfjsLib.PDFJS.disableCreateObjectURL) {
this.downloadUrl(url, filename);
return;
}
var blobUrl = URL.createObjectURL(blob); var blobUrl = URL.createObjectURL(blob);
download(blobUrl, filename); download(blobUrl, filename);
} }

Loading…
Cancel
Save