Browse Source

PDF.js version 1.10.95 - See mozilla/pdf.js@92fcfce68534b9f23564ae72a9d50f33739af8c0

master v1.10.95
pdfjsbot 7 years ago
parent
commit
693e9c76f0
  1. 2
      bower.json
  2. 26
      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. 16
      build/pdf.worker.js
  8. 2
      build/pdf.worker.js.map
  9. 2
      build/pdf.worker.min.js
  10. 10
      lib/core/fonts.js
  11. 2
      lib/core/worker.js
  12. 6
      lib/display/api.js
  13. 4
      lib/display/global.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": "1.10.93",
"version": "1.10.95",
"main": [
"build/pdf.js",
"build/pdf.worker.js"

26
build/pdf.combined.js

@ -11415,7 +11415,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) { @@ -11415,7 +11415,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) {
if (worker.destroyed) {
return Promise.reject(new Error('Worker was destroyed'));
}
var apiVersion = '1.10.93';
var apiVersion = '1.10.95';
source.disableAutoFetch = (0, _dom_utils.getDefaultSetting)('disableAutoFetch');
source.disableStream = (0, _dom_utils.getDefaultSetting)('disableStream');
source.chunkedViewerLoading = !!pdfDataRangeTransport;
@ -12719,8 +12719,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() { @@ -12719,8 +12719,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
}();
var version, build;
{
exports.version = version = '1.10.93';
exports.build = build = '4e66c69d';
exports.version = version = '1.10.95';
exports.build = build = '92fcfce6';
}
exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort;
@ -29835,8 +29835,8 @@ exports.SVGGraphics = SVGGraphics; @@ -29835,8 +29835,8 @@ exports.SVGGraphics = SVGGraphics;
"use strict";
var pdfjsVersion = '1.10.93';
var pdfjsBuild = '4e66c69d';
var pdfjsVersion = '1.10.95';
var pdfjsBuild = '92fcfce6';
var pdfjsSharedUtil = __w_pdfjs_require__(0);
var pdfjsDisplayGlobal = __w_pdfjs_require__(133);
var pdfjsDisplayAPI = __w_pdfjs_require__(75);
@ -36066,8 +36066,8 @@ if (!_global_scope2.default.PDFJS) { @@ -36066,8 +36066,8 @@ if (!_global_scope2.default.PDFJS) {
}
var PDFJS = _global_scope2.default.PDFJS;
{
PDFJS.version = '1.10.93';
PDFJS.build = '4e66c69d';
PDFJS.version = '1.10.95';
PDFJS.build = '92fcfce6';
}
PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) {
@ -39024,7 +39024,7 @@ var WorkerMessageHandler = { @@ -39024,7 +39024,7 @@ var WorkerMessageHandler = {
var cancelXHRs = null;
var WorkerTasks = [];
var apiVersion = docParams.apiVersion;
var workerVersion = '1.10.93';
var workerVersion = '1.10.95';
if (apiVersion !== null && apiVersion !== workerVersion) {
throw new Error('The API version "' + apiVersion + '" does not match ' + ('the Worker version "' + workerVersion + '".'));
}
@ -44159,6 +44159,10 @@ var Font = function FontClosure() { @@ -44159,6 +44159,10 @@ var Font = function FontClosure() {
function int16(b0, b1) {
return (b0 << 8) + b1;
}
function writeSignedInt16(bytes, index, value) {
bytes[index + 1] = value;
bytes[index] = value >>> 8;
}
function signedInt16(b0, b1) {
var value = (b0 << 8) + b1;
return value & 1 << 15 ? value - 0x10000 : value;
@ -44810,8 +44814,10 @@ var Font = function FontClosure() { @@ -44810,8 +44814,10 @@ var Font = function FontClosure() {
return glyphProfile;
}
var glyf = source.subarray(sourceStart, sourceEnd);
var contoursCount = glyf[0] << 8 | glyf[1];
if (contoursCount & 0x8000) {
var contoursCount = signedInt16(glyf[0], glyf[1]);
if (contoursCount < 0) {
contoursCount = -1;
writeSignedInt16(glyf, 0, contoursCount);
dest.set(glyf, destStart);
glyphProfile.length = glyf.length;
return glyphProfile;

2
build/pdf.combined.js.map

File diff suppressed because one or more lines are too long

14
build/pdf.js

@ -3595,7 +3595,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) { @@ -3595,7 +3595,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) {
if (worker.destroyed) {
return Promise.reject(new Error('Worker was destroyed'));
}
var apiVersion = '1.10.93';
var apiVersion = '1.10.95';
source.disableAutoFetch = (0, _dom_utils.getDefaultSetting)('disableAutoFetch');
source.disableStream = (0, _dom_utils.getDefaultSetting)('disableStream');
source.chunkedViewerLoading = !!pdfDataRangeTransport;
@ -4986,8 +4986,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() { @@ -4986,8 +4986,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
}();
var version, build;
{
exports.version = version = '1.10.93';
exports.build = build = '4e66c69d';
exports.version = version = '1.10.95';
exports.build = build = '92fcfce6';
}
exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort;
@ -8059,8 +8059,8 @@ exports.SVGGraphics = SVGGraphics; @@ -8059,8 +8059,8 @@ exports.SVGGraphics = SVGGraphics;
"use strict";
var pdfjsVersion = '1.10.93';
var pdfjsBuild = '4e66c69d';
var pdfjsVersion = '1.10.95';
var pdfjsBuild = '92fcfce6';
var pdfjsSharedUtil = __w_pdfjs_require__(0);
var pdfjsDisplayGlobal = __w_pdfjs_require__(117);
var pdfjsDisplayAPI = __w_pdfjs_require__(69);
@ -14290,8 +14290,8 @@ if (!_global_scope2.default.PDFJS) { @@ -14290,8 +14290,8 @@ if (!_global_scope2.default.PDFJS) {
}
var PDFJS = _global_scope2.default.PDFJS;
{
PDFJS.version = '1.10.93';
PDFJS.build = '4e66c69d';
PDFJS.version = '1.10.95';
PDFJS.build = '92fcfce6';
}
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

16
build/pdf.worker.js vendored

@ -24779,8 +24779,8 @@ exports.PostScriptCompiler = PostScriptCompiler; @@ -24779,8 +24779,8 @@ exports.PostScriptCompiler = PostScriptCompiler;
"use strict";
var pdfjsVersion = '1.10.93';
var pdfjsBuild = '4e66c69d';
var pdfjsVersion = '1.10.95';
var pdfjsBuild = '92fcfce6';
var pdfjsCoreWorker = __w_pdfjs_require__(83);
exports.WorkerMessageHandler = pdfjsCoreWorker.WorkerMessageHandler;
@ -24985,7 +24985,7 @@ var WorkerMessageHandler = { @@ -24985,7 +24985,7 @@ var WorkerMessageHandler = {
var cancelXHRs = null;
var WorkerTasks = [];
var apiVersion = docParams.apiVersion;
var workerVersion = '1.10.93';
var workerVersion = '1.10.95';
if (apiVersion !== null && apiVersion !== workerVersion) {
throw new Error('The API version "' + apiVersion + '" does not match ' + ('the Worker version "' + workerVersion + '".'));
}
@ -36272,6 +36272,10 @@ var Font = function FontClosure() { @@ -36272,6 +36272,10 @@ var Font = function FontClosure() {
function int16(b0, b1) {
return (b0 << 8) + b1;
}
function writeSignedInt16(bytes, index, value) {
bytes[index + 1] = value;
bytes[index] = value >>> 8;
}
function signedInt16(b0, b1) {
var value = (b0 << 8) + b1;
return value & 1 << 15 ? value - 0x10000 : value;
@ -36923,8 +36927,10 @@ var Font = function FontClosure() { @@ -36923,8 +36927,10 @@ var Font = function FontClosure() {
return glyphProfile;
}
var glyf = source.subarray(sourceStart, sourceEnd);
var contoursCount = glyf[0] << 8 | glyf[1];
if (contoursCount & 0x8000) {
var contoursCount = signedInt16(glyf[0], glyf[1]);
if (contoursCount < 0) {
contoursCount = -1;
writeSignedInt16(glyf, 0, contoursCount);
dest.set(glyf, destStart);
glyphProfile.length = glyf.length;
return glyphProfile;

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

10
lib/core/fonts.js

@ -449,6 +449,10 @@ var Font = function FontClosure() { @@ -449,6 +449,10 @@ var Font = function FontClosure() {
function int16(b0, b1) {
return (b0 << 8) + b1;
}
function writeSignedInt16(bytes, index, value) {
bytes[index + 1] = value;
bytes[index] = value >>> 8;
}
function signedInt16(b0, b1) {
var value = (b0 << 8) + b1;
return value & 1 << 15 ? value - 0x10000 : value;
@ -1100,8 +1104,10 @@ var Font = function FontClosure() { @@ -1100,8 +1104,10 @@ var Font = function FontClosure() {
return glyphProfile;
}
var glyf = source.subarray(sourceStart, sourceEnd);
var contoursCount = glyf[0] << 8 | glyf[1];
if (contoursCount & 0x8000) {
var contoursCount = signedInt16(glyf[0], glyf[1]);
if (contoursCount < 0) {
contoursCount = -1;
writeSignedInt16(glyf, 0, contoursCount);
dest.set(glyf, destStart);
glyphProfile.length = glyf.length;
return glyphProfile;

2
lib/core/worker.js

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

6
lib/display/api.js

@ -193,7 +193,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) { @@ -193,7 +193,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) {
if (worker.destroyed) {
return Promise.reject(new Error('Worker was destroyed'));
}
var apiVersion = '1.10.93';
var apiVersion = '1.10.95';
source.disableAutoFetch = (0, _dom_utils.getDefaultSetting)('disableAutoFetch');
source.disableStream = (0, _dom_utils.getDefaultSetting)('disableStream');
source.chunkedViewerLoading = !!pdfDataRangeTransport;
@ -1584,8 +1584,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() { @@ -1584,8 +1584,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
}();
var version, build;
{
exports.version = version = '1.10.93';
exports.build = build = '4e66c69d';
exports.version = version = '1.10.95';
exports.build = build = '92fcfce6';
}
exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort;

4
lib/display/global.js

@ -44,8 +44,8 @@ if (!_global_scope2.default.PDFJS) { @@ -44,8 +44,8 @@ if (!_global_scope2.default.PDFJS) {
}
var PDFJS = _global_scope2.default.PDFJS;
{
PDFJS.version = '1.10.93';
PDFJS.build = '4e66c69d';
PDFJS.version = '1.10.95';
PDFJS.build = '92fcfce6';
}
PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) {

4
lib/pdf.js

@ -14,8 +14,8 @@ @@ -14,8 +14,8 @@
*/
'use strict';
var pdfjsVersion = '1.10.93';
var pdfjsBuild = '4e66c69d';
var pdfjsVersion = '1.10.95';
var pdfjsBuild = '92fcfce6';
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.10.93';
var pdfjsBuild = '4e66c69d';
var pdfjsVersion = '1.10.95';
var pdfjsBuild = '92fcfce6';
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": "1.10.93",
"version": "1.10.95",
"main": "build/pdf.js",
"description": "Generic build of Mozilla's PDF.js library.",
"keywords": [

Loading…
Cancel
Save