Browse Source

PDF.js version 2.0.267 - See mozilla/pdf.js@237bc2ef9df204069c4996e14433e0a35123444a

master v2.0.267
pdfjsbot 7 years ago
parent
commit
8b7735e67a
  1. 2
      bower.json
  2. 27
      build/pdf.combined.js
  3. 2
      build/pdf.combined.js.map
  4. 25
      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. 11
      lib/display/node_stream.js
  14. 4
      lib/pdf.js
  15. 4
      lib/pdf.worker.js
  16. 2
      package.json

2
bower.json

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

27
build/pdf.combined.js

@ -11628,7 +11628,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) { @@ -11628,7 +11628,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) {
if (worker.destroyed) {
return Promise.reject(new Error('Worker was destroyed'));
}
var apiVersion = '2.0.265';
var apiVersion = '2.0.267';
source.disableRange = (0, _dom_utils.getDefaultSetting)('disableRange');
source.disableAutoFetch = (0, _dom_utils.getDefaultSetting)('disableAutoFetch');
source.disableStream = (0, _dom_utils.getDefaultSetting)('disableStream');
@ -12920,8 +12920,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() { @@ -12920,8 +12920,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() {
}();
var version, build;
{
exports.version = version = '2.0.265';
exports.build = build = 'a7cb560f';
exports.version = version = '2.0.267';
exports.build = build = '237bc2ef';
}
exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort;
@ -26718,8 +26718,8 @@ exports.SVGGraphics = SVGGraphics; @@ -26718,8 +26718,8 @@ exports.SVGGraphics = SVGGraphics;
"use strict";
var pdfjsVersion = '2.0.265';
var pdfjsBuild = 'a7cb560f';
var pdfjsVersion = '2.0.267';
var pdfjsBuild = '237bc2ef';
var pdfjsSharedUtil = __w_pdfjs_require__(0);
var pdfjsDisplayGlobal = __w_pdfjs_require__(132);
var pdfjsDisplayAPI = __w_pdfjs_require__(66);
@ -31916,8 +31916,8 @@ if (!_global_scope2.default.PDFJS) { @@ -31916,8 +31916,8 @@ if (!_global_scope2.default.PDFJS) {
}
var PDFJS = _global_scope2.default.PDFJS;
{
PDFJS.version = '2.0.265';
PDFJS.build = 'a7cb560f';
PDFJS.version = '2.0.267';
PDFJS.build = '237bc2ef';
}
PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) {
@ -35284,7 +35284,7 @@ var WorkerMessageHandler = { @@ -35284,7 +35284,7 @@ var WorkerMessageHandler = {
var cancelXHRs = null;
var WorkerTasks = [];
var apiVersion = docParams.apiVersion;
var workerVersion = '2.0.265';
var workerVersion = '2.0.267';
if (apiVersion !== null && apiVersion !== workerVersion) {
throw new Error('The API version "' + apiVersion + '" does not match ' + ('the Worker version "' + workerVersion + '".'));
}
@ -52508,6 +52508,8 @@ var http = require('http'); @@ -52508,6 +52508,8 @@ var http = require('http');
var https = require('https');
var url = require('url');
var fileUriRegex = /^file:\/\/\/[a-zA-Z]:\//;
var PDFNodeStream = function () {
function PDFNodeStream(source) {
_classCallCheck(this, PDFNodeStream);
@ -52873,6 +52875,9 @@ var PDFNodeStreamFsFullReader = function (_BaseFullReader2) { @@ -52873,6 +52875,9 @@ var PDFNodeStreamFsFullReader = function (_BaseFullReader2) {
var _this7 = _possibleConstructorReturn(this, (PDFNodeStreamFsFullReader.__proto__ || Object.getPrototypeOf(PDFNodeStreamFsFullReader)).call(this, stream));
var path = decodeURI(_this7._url.path);
if (fileUriRegex.test(_this7._url.href)) {
path = path.replace(/^\//, '');
}
fs.lstat(path, function (error, stat) {
if (error) {
_this7._errored = true;
@ -52898,7 +52903,11 @@ var PDFNodeStreamFsRangeReader = function (_BaseRangeReader2) { @@ -52898,7 +52903,11 @@ var PDFNodeStreamFsRangeReader = function (_BaseRangeReader2) {
var _this8 = _possibleConstructorReturn(this, (PDFNodeStreamFsRangeReader.__proto__ || Object.getPrototypeOf(PDFNodeStreamFsRangeReader)).call(this, stream));
_this8._setReadableStream(fs.createReadStream(decodeURI(_this8._url.path), {
var path = decodeURI(_this8._url.path);
if (fileUriRegex.test(_this8._url.href)) {
path = path.replace(/^\//, '');
}
_this8._setReadableStream(fs.createReadStream(path, {
start: start,
end: end - 1
}));

2
build/pdf.combined.js.map

File diff suppressed because one or more lines are too long

25
build/pdf.js

@ -3308,7 +3308,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) { @@ -3308,7 +3308,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) {
if (worker.destroyed) {
return Promise.reject(new Error('Worker was destroyed'));
}
var apiVersion = '2.0.265';
var apiVersion = '2.0.267';
source.disableRange = (0, _dom_utils.getDefaultSetting)('disableRange');
source.disableAutoFetch = (0, _dom_utils.getDefaultSetting)('disableAutoFetch');
source.disableStream = (0, _dom_utils.getDefaultSetting)('disableStream');
@ -4681,8 +4681,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() { @@ -4681,8 +4681,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() {
}();
var version, build;
{
exports.version = version = '2.0.265';
exports.build = build = 'a7cb560f';
exports.version = version = '2.0.267';
exports.build = build = '237bc2ef';
}
exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort;
@ -7440,8 +7440,8 @@ exports.SVGGraphics = SVGGraphics; @@ -7440,8 +7440,8 @@ exports.SVGGraphics = SVGGraphics;
"use strict";
var pdfjsVersion = '2.0.265';
var pdfjsBuild = 'a7cb560f';
var pdfjsVersion = '2.0.267';
var pdfjsBuild = '237bc2ef';
var pdfjsSharedUtil = __w_pdfjs_require__(0);
var pdfjsDisplayGlobal = __w_pdfjs_require__(115);
var pdfjsDisplayAPI = __w_pdfjs_require__(58);
@ -12638,8 +12638,8 @@ if (!_global_scope2.default.PDFJS) { @@ -12638,8 +12638,8 @@ if (!_global_scope2.default.PDFJS) {
}
var PDFJS = _global_scope2.default.PDFJS;
{
PDFJS.version = '2.0.265';
PDFJS.build = 'a7cb560f';
PDFJS.version = '2.0.267';
PDFJS.build = '237bc2ef';
}
PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) {
@ -15826,6 +15826,8 @@ var http = require('http'); @@ -15826,6 +15826,8 @@ var http = require('http');
var https = require('https');
var url = require('url');
var fileUriRegex = /^file:\/\/\/[a-zA-Z]:\//;
var PDFNodeStream = function () {
function PDFNodeStream(source) {
_classCallCheck(this, PDFNodeStream);
@ -16191,6 +16193,9 @@ var PDFNodeStreamFsFullReader = function (_BaseFullReader2) { @@ -16191,6 +16193,9 @@ var PDFNodeStreamFsFullReader = function (_BaseFullReader2) {
var _this7 = _possibleConstructorReturn(this, (PDFNodeStreamFsFullReader.__proto__ || Object.getPrototypeOf(PDFNodeStreamFsFullReader)).call(this, stream));
var path = decodeURI(_this7._url.path);
if (fileUriRegex.test(_this7._url.href)) {
path = path.replace(/^\//, '');
}
fs.lstat(path, function (error, stat) {
if (error) {
_this7._errored = true;
@ -16216,7 +16221,11 @@ var PDFNodeStreamFsRangeReader = function (_BaseRangeReader2) { @@ -16216,7 +16221,11 @@ var PDFNodeStreamFsRangeReader = function (_BaseRangeReader2) {
var _this8 = _possibleConstructorReturn(this, (PDFNodeStreamFsRangeReader.__proto__ || Object.getPrototypeOf(PDFNodeStreamFsRangeReader)).call(this, stream));
_this8._setReadableStream(fs.createReadStream(decodeURI(_this8._url.path), {
var path = decodeURI(_this8._url.path);
if (fileUriRegex.test(_this8._url.href)) {
path = path.replace(/^\//, '');
}
_this8._setReadableStream(fs.createReadStream(path, {
start: start,
end: end - 1
}));

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

@ -21955,8 +21955,8 @@ exports.PostScriptCompiler = PostScriptCompiler; @@ -21955,8 +21955,8 @@ exports.PostScriptCompiler = PostScriptCompiler;
"use strict";
var pdfjsVersion = '2.0.265';
var pdfjsBuild = 'a7cb560f';
var pdfjsVersion = '2.0.267';
var pdfjsBuild = '237bc2ef';
var pdfjsCoreWorker = __w_pdfjs_require__(73);
exports.WorkerMessageHandler = pdfjsCoreWorker.WorkerMessageHandler;
@ -22169,7 +22169,7 @@ var WorkerMessageHandler = { @@ -22169,7 +22169,7 @@ var WorkerMessageHandler = {
var cancelXHRs = null;
var WorkerTasks = [];
var apiVersion = docParams.apiVersion;
var workerVersion = '2.0.265';
var workerVersion = '2.0.267';
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.265';
var workerVersion = '2.0.267';
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.265';
var apiVersion = '2.0.267';
source.disableRange = (0, _dom_utils.getDefaultSetting)('disableRange');
source.disableAutoFetch = (0, _dom_utils.getDefaultSetting)('disableAutoFetch');
source.disableStream = (0, _dom_utils.getDefaultSetting)('disableStream');
@ -1551,8 +1551,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() { @@ -1551,8 +1551,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() {
}();
var version, build;
{
exports.version = version = '2.0.265';
exports.build = build = 'a7cb560f';
exports.version = version = '2.0.267';
exports.build = build = '237bc2ef';
}
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.265';
PDFJS.build = 'a7cb560f';
PDFJS.version = '2.0.267';
PDFJS.build = '237bc2ef';
}
PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) {

11
lib/display/node_stream.js

@ -43,6 +43,8 @@ var http = require('http'); @@ -43,6 +43,8 @@ var http = require('http');
var https = require('https');
var url = require('url');
var fileUriRegex = /^file:\/\/\/[a-zA-Z]:\//;
var PDFNodeStream = function () {
function PDFNodeStream(source) {
_classCallCheck(this, PDFNodeStream);
@ -408,6 +410,9 @@ var PDFNodeStreamFsFullReader = function (_BaseFullReader2) { @@ -408,6 +410,9 @@ var PDFNodeStreamFsFullReader = function (_BaseFullReader2) {
var _this7 = _possibleConstructorReturn(this, (PDFNodeStreamFsFullReader.__proto__ || Object.getPrototypeOf(PDFNodeStreamFsFullReader)).call(this, stream));
var path = decodeURI(_this7._url.path);
if (fileUriRegex.test(_this7._url.href)) {
path = path.replace(/^\//, '');
}
fs.lstat(path, function (error, stat) {
if (error) {
_this7._errored = true;
@ -433,7 +438,11 @@ var PDFNodeStreamFsRangeReader = function (_BaseRangeReader2) { @@ -433,7 +438,11 @@ var PDFNodeStreamFsRangeReader = function (_BaseRangeReader2) {
var _this8 = _possibleConstructorReturn(this, (PDFNodeStreamFsRangeReader.__proto__ || Object.getPrototypeOf(PDFNodeStreamFsRangeReader)).call(this, stream));
_this8._setReadableStream(fs.createReadStream(decodeURI(_this8._url.path), {
var path = decodeURI(_this8._url.path);
if (fileUriRegex.test(_this8._url.href)) {
path = path.replace(/^\//, '');
}
_this8._setReadableStream(fs.createReadStream(path, {
start: start,
end: end - 1
}));

4
lib/pdf.js

@ -21,8 +21,8 @@ @@ -21,8 +21,8 @@
*/
'use strict';
var pdfjsVersion = '2.0.265';
var pdfjsBuild = 'a7cb560f';
var pdfjsVersion = '2.0.267';
var pdfjsBuild = '237bc2ef';
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.265';
var pdfjsBuild = 'a7cb560f';
var pdfjsVersion = '2.0.267';
var pdfjsBuild = '237bc2ef';
var pdfjsCoreWorker = require('./core/worker.js');
exports.WorkerMessageHandler = pdfjsCoreWorker.WorkerMessageHandler;

2
package.json

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

Loading…
Cancel
Save