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 @@ @@ -1,6 +1,6 @@
{
"name": "pdfjs-dist",
"version": "1.7.308",
"version": "1.7.310",
"main": [
"build/pdf.js",
"build/pdf.worker.js"

12
build/pdf.combined.js

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

12
build/pdf.js

@ -4553,8 +4553,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() { @@ -4553,8 +4553,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
}
};
}();
exports.version = '1.7.308';
exports.build = 'cf73f4bc';
exports.version = '1.7.310';
exports.build = '72a09161';
exports.getDocument = getDocument;
exports.PDFDataRangeTransport = PDFDataRangeTransport;
exports.PDFWorker = PDFWorker;
@ -6570,8 +6570,8 @@ if (!globalScope.PDFJS) { @@ -6570,8 +6570,8 @@ if (!globalScope.PDFJS) {
globalScope.PDFJS = {};
}
var PDFJS = globalScope.PDFJS;
PDFJS.version = '1.7.308';
PDFJS.build = 'cf73f4bc';
PDFJS.version = '1.7.310';
PDFJS.build = '72a09161';
PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) {
sharedUtil.setVerbosityLevel(PDFJS.verbosity);
@ -9253,8 +9253,8 @@ exports.TilingPattern = TilingPattern; @@ -9253,8 +9253,8 @@ exports.TilingPattern = TilingPattern;
"use strict";
var pdfjsVersion = '1.7.308';
var pdfjsBuild = 'cf73f4bc';
var pdfjsVersion = '1.7.310';
var pdfjsBuild = '72a09161';
var pdfjsSharedUtil = __w_pdfjs_require__(0);
var pdfjsDisplayGlobal = __w_pdfjs_require__(8);
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; @@ -50524,8 +50524,8 @@ exports.Type1Parser = Type1Parser;
"use strict";
var pdfjsVersion = '1.7.308';
var pdfjsBuild = 'cf73f4bc';
var pdfjsVersion = '1.7.310';
var pdfjsBuild = '72a09161';
var pdfjsCoreWorker = __w_pdfjs_require__(8);
{
__w_pdfjs_require__(18);

2
package.json

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

8
web/compatibility.js

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

8
web/pdf_viewer.js

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

Loading…
Cancel
Save