Browse Source

PDF.js version 1.9.553 - See mozilla/pdf.js@3a84d582d34b0b793f5e177333de518f68fc700b

master v1.9.553
pdfjsbot 7 years ago
parent
commit
478dbb7313
  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. 2
      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. 38
      lib/web/firefoxcom.js
  14. 2
      package.json

2
bower.json

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

12
build/pdf.combined.js

@ -13473,8 +13473,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() { @@ -13473,8 +13473,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
}();
var version, build;
{
exports.version = version = '1.9.551';
exports.build = build = '46481eb2';
exports.version = version = '1.9.553';
exports.build = build = '3a84d582';
}
exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort;
@ -29310,8 +29310,8 @@ exports.SVGGraphics = SVGGraphics; @@ -29310,8 +29310,8 @@ exports.SVGGraphics = SVGGraphics;
"use strict";
var pdfjsVersion = '1.9.551';
var pdfjsBuild = '46481eb2';
var pdfjsVersion = '1.9.553';
var pdfjsBuild = '3a84d582';
var pdfjsSharedUtil = __w_pdfjs_require__(0);
var pdfjsDisplayGlobal = __w_pdfjs_require__(98);
var pdfjsDisplayAPI = __w_pdfjs_require__(55);
@ -35173,8 +35173,8 @@ if (!_global_scope2.default.PDFJS) { @@ -35173,8 +35173,8 @@ if (!_global_scope2.default.PDFJS) {
}
var PDFJS = _global_scope2.default.PDFJS;
{
PDFJS.version = '1.9.551';
PDFJS.build = '46481eb2';
PDFJS.version = '1.9.553';
PDFJS.build = '3a84d582';
}
PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) {

2
build/pdf.combined.js.map

File diff suppressed because one or more lines are too long

12
build/pdf.js

@ -4203,8 +4203,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() { @@ -4203,8 +4203,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
}();
var version, build;
{
exports.version = version = '1.9.551';
exports.build = build = '46481eb2';
exports.version = version = '1.9.553';
exports.build = build = '3a84d582';
}
exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort;
@ -7155,8 +7155,8 @@ exports.SVGGraphics = SVGGraphics; @@ -7155,8 +7155,8 @@ exports.SVGGraphics = SVGGraphics;
"use strict";
var pdfjsVersion = '1.9.551';
var pdfjsBuild = '46481eb2';
var pdfjsVersion = '1.9.553';
var pdfjsBuild = '3a84d582';
var pdfjsSharedUtil = __w_pdfjs_require__(0);
var pdfjsDisplayGlobal = __w_pdfjs_require__(82);
var pdfjsDisplayAPI = __w_pdfjs_require__(48);
@ -13018,8 +13018,8 @@ if (!_global_scope2.default.PDFJS) { @@ -13018,8 +13018,8 @@ if (!_global_scope2.default.PDFJS) {
}
var PDFJS = _global_scope2.default.PDFJS;
{
PDFJS.version = '1.9.551';
PDFJS.build = '46481eb2';
PDFJS.version = '1.9.553';
PDFJS.build = '3a84d582';
}
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

4
build/pdf.worker.js vendored

@ -24512,8 +24512,8 @@ exports.getUnicodeForGlyph = getUnicodeForGlyph; @@ -24512,8 +24512,8 @@ exports.getUnicodeForGlyph = getUnicodeForGlyph;
"use strict";
var pdfjsVersion = '1.9.551';
var pdfjsBuild = '46481eb2';
var pdfjsVersion = '1.9.553';
var pdfjsBuild = '3a84d582';
var pdfjsCoreWorker = __w_pdfjs_require__(62);
exports.WorkerMessageHandler = pdfjsCoreWorker.WorkerMessageHandler;

2
build/pdf.worker.js.map vendored

File diff suppressed because one or more lines are too long

4
lib/display/api.js

@ -1581,8 +1581,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() { @@ -1581,8 +1581,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
}();
var version, build;
{
exports.version = version = '1.9.551';
exports.build = build = '46481eb2';
exports.version = version = '1.9.553';
exports.build = build = '3a84d582';
}
exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort;

4
lib/display/global.js

@ -45,8 +45,8 @@ if (!_global_scope2.default.PDFJS) { @@ -45,8 +45,8 @@ if (!_global_scope2.default.PDFJS) {
}
var PDFJS = _global_scope2.default.PDFJS;
{
PDFJS.version = '1.9.551';
PDFJS.build = '46481eb2';
PDFJS.version = '1.9.553';
PDFJS.build = '3a84d582';
}
PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) {

4
lib/pdf.js

@ -14,8 +14,8 @@ @@ -14,8 +14,8 @@
*/
'use strict';
var pdfjsVersion = '1.9.551';
var pdfjsBuild = '46481eb2';
var pdfjsVersion = '1.9.553';
var pdfjsBuild = '3a84d582';
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,7 +14,7 @@ @@ -14,7 +14,7 @@
*/
'use strict';
var pdfjsVersion = '1.9.551';
var pdfjsBuild = '46481eb2';
var pdfjsVersion = '1.9.553';
var pdfjsBuild = '3a84d582';
var pdfjsCoreWorker = require('./core/worker.js');
exports.WorkerMessageHandler = pdfjsCoreWorker.WorkerMessageHandler;

38
lib/web/firefoxcom.js

@ -31,12 +31,12 @@ var _preferences = require('./preferences'); @@ -31,12 +31,12 @@ var _preferences = require('./preferences');
var _app = require('./app');
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; }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
{
throw new Error('Module "pdfjs-web/firefoxcom" shall not be used outside ' + 'FIREFOX and MOZCENTRAL builds.');
}
@ -79,16 +79,23 @@ var FirefoxCom = function FirefoxComClosure() { @@ -79,16 +79,23 @@ var FirefoxCom = function FirefoxComClosure() {
}
};
}();
var DownloadManager = function DownloadManagerClosure() {
function DownloadManager() {}
DownloadManager.prototype = {
downloadUrl: function DownloadManager_downloadUrl(url, filename) {
var DownloadManager = function () {
function DownloadManager() {
_classCallCheck(this, DownloadManager);
}
_createClass(DownloadManager, [{
key: 'downloadUrl',
value: function downloadUrl(url, filename) {
FirefoxCom.request('download', {
originalUrl: url,
filename: filename
});
},
downloadData: function DownloadManager_downloadData(data, filename, contentType) {
}
}, {
key: 'downloadData',
value: function downloadData(data, filename, contentType) {
var blobUrl = (0, _pdf.createObjectURL)(data, contentType, false);
FirefoxCom.request('download', {
blobUrl: blobUrl,
@ -96,16 +103,18 @@ var DownloadManager = function DownloadManagerClosure() { @@ -96,16 +103,18 @@ var DownloadManager = function DownloadManagerClosure() {
filename: filename,
isAttachment: true
});
},
download: function DownloadManager_download(blob, url, filename) {
}
}, {
key: 'download',
value: function download(blob, url, filename) {
var _this = this;
var blobUrl = window.URL.createObjectURL(blob);
var blobUrl = URL.createObjectURL(blob);
var onResponse = function onResponse(err) {
if (err && _this.onerror) {
_this.onerror(err);
}
window.URL.revokeObjectURL(blobUrl);
URL.revokeObjectURL(blobUrl);
};
FirefoxCom.request('download', {
blobUrl: blobUrl,
@ -113,7 +122,8 @@ var DownloadManager = function DownloadManagerClosure() { @@ -113,7 +122,8 @@ var DownloadManager = function DownloadManagerClosure() {
filename: filename
}, onResponse);
}
};
}]);
return DownloadManager;
}();
@ -214,7 +224,7 @@ _app.PDFViewerApplication.externalServices = { @@ -214,7 +224,7 @@ _app.PDFViewerApplication.externalServices = {
FirefoxCom.request('updateFindControlState', data);
},
initPassiveLoading: function initPassiveLoading(callbacks) {
var pdfDataRangeTransport;
var pdfDataRangeTransport = void 0;
window.addEventListener('message', function windowMessage(e) {
if (e.source !== null) {
console.warn('Rejected untrusted message from ' + e.origin);

2
package.json

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

Loading…
Cancel
Save