Browse Source

PDF.js version 1.5.454 - See mozilla/pdf.js@03588ccbf7f99133ea78f78ccc7b88c2951988b8

master v1.5.454
Pdf Bot 8 years ago
parent
commit
f217e62419
  1. 2
      bower.json
  2. 43
      build/pdf.combined.js
  3. 4
      build/pdf.js
  4. 43
      build/pdf.worker.js
  5. 2
      package.json

2
bower.json

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

43
build/pdf.combined.js

@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfCombined = {})); @@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfCombined = {}));
// Use strict in our context only - users might not want it
'use strict';
var pdfjsVersion = '1.5.452';
var pdfjsBuild = '230b1e3';
var pdfjsVersion = '1.5.454';
var pdfjsBuild = '03588cc';
var pdfjsFilePath =
typeof document !== 'undefined' && document.currentScript ?
@ -12175,10 +12175,11 @@ exports.JpegImage = JpegImage; @@ -12175,10 +12175,11 @@ exports.JpegImage = JpegImage;
}(this, function (exports, sharedUtil, coreArithmeticDecoder) {
var info = sharedUtil.info;
var warn = sharedUtil.warn;
var error = sharedUtil.error;
var log2 = sharedUtil.log2;
var readUint16 = sharedUtil.readUint16;
var readUint32 = sharedUtil.readUint32;
var warn = sharedUtil.warn;
var ArithmeticDecoder = coreArithmeticDecoder.ArithmeticDecoder;
var JpxImage = (function JpxImageClosure() {
@ -12220,7 +12221,7 @@ var JpxImage = (function JpxImageClosure() { @@ -12220,7 +12221,7 @@ var JpxImage = (function JpxImageClosure() {
lbox = length - position + headerSize;
}
if (lbox < headerSize) {
throw new Error('JPX Error: Invalid box field size');
error('JPX Error: Invalid box field size');
}
var dataLength = lbox - headerSize;
var jumpDataLength = true;
@ -12298,12 +12299,12 @@ var JpxImage = (function JpxImageClosure() { @@ -12298,12 +12299,12 @@ var JpxImage = (function JpxImageClosure() {
return;
}
}
throw new Error('JPX Error: No size marker found in JPX stream');
error('JPX Error: No size marker found in JPX stream');
},
parseCodestream: function JpxImage_parseCodestream(data, start, end) {
var context = {};
try {
var doNotRecover = false;
try {
var position = start;
while (position + 1 < end) {
var code = readUint16(data, position);
@ -12366,7 +12367,7 @@ var JpxImage = (function JpxImageClosure() { @@ -12366,7 +12367,7 @@ var JpxImage = (function JpxImageClosure() {
scalarExpounded = true;
break;
default:
throw new Error('JPX Error: Invalid SQcd value ' + sqcd);
throw new Error('Invalid SQcd value ' + sqcd);
}
qcd.noQuantization = (spqcdSize === 8);
qcd.scalarExpounded = scalarExpounded;
@ -12418,7 +12419,7 @@ var JpxImage = (function JpxImageClosure() { @@ -12418,7 +12419,7 @@ var JpxImage = (function JpxImageClosure() {
scalarExpounded = true;
break;
default:
throw new Error('JPX Error: Invalid SQcd value ' + sqcd);
throw new Error('Invalid SQcd value ' + sqcd);
}
qcc.noQuantization = (spqcdSize === 8);
qcc.scalarExpounded = scalarExpounded;
@ -12496,7 +12497,7 @@ var JpxImage = (function JpxImageClosure() { @@ -12496,7 +12497,7 @@ var JpxImage = (function JpxImageClosure() {
}
if (unsupported.length > 0) {
doNotRecover = true;
throw new Error('JPX Error: Unsupported COD options (' +
throw new Error('Unsupported COD options (' +
unsupported.join(', ') + ')');
}
if (context.mainHeader) {
@ -12544,19 +12545,18 @@ var JpxImage = (function JpxImageClosure() { @@ -12544,19 +12545,18 @@ var JpxImage = (function JpxImageClosure() {
// skipping content
break;
case 0xFF53: // Coding style component (COC)
throw new Error('JPX Error: Codestream code 0xFF53 (COC) is ' +
throw new Error('Codestream code 0xFF53 (COC) is ' +
'not implemented');
default:
throw new Error('JPX Error: Unknown codestream code: ' +
code.toString(16));
throw new Error('Unknown codestream code: ' + code.toString(16));
}
position += length;
}
} catch (e) {
if (doNotRecover || this.failOnCorruptedImage) {
throw e;
error('JPX Error: ' + e.message);
} else {
warn('Trying to recover from ' + e.message);
warn('JPX: Trying to recover from: ' + e.message);
}
}
this.tiles = transformComponents(context);
@ -12806,7 +12806,7 @@ var JpxImage = (function JpxImageClosure() { @@ -12806,7 +12806,7 @@ var JpxImage = (function JpxImageClosure() {
}
r = 0;
}
throw new Error('JPX Error: Out of packets');
error('JPX Error: Out of packets');
};
}
function ResolutionLayerComponentPositionIterator(context) {
@ -12846,7 +12846,7 @@ var JpxImage = (function JpxImageClosure() { @@ -12846,7 +12846,7 @@ var JpxImage = (function JpxImageClosure() {
}
l = 0;
}
throw new Error('JPX Error: Out of packets');
error('JPX Error: Out of packets');
};
}
function ResolutionPositionComponentLayerIterator(context) {
@ -12905,7 +12905,7 @@ var JpxImage = (function JpxImageClosure() { @@ -12905,7 +12905,7 @@ var JpxImage = (function JpxImageClosure() {
}
p = 0;
}
throw new Error('JPX Error: Out of packets');
error('JPX Error: Out of packets');
};
}
function PositionComponentResolutionLayerIterator(context) {
@ -12952,7 +12952,7 @@ var JpxImage = (function JpxImageClosure() { @@ -12952,7 +12952,7 @@ var JpxImage = (function JpxImageClosure() {
}
px = 0;
}
throw new Error('JPX Error: Out of packets');
error('JPX Error: Out of packets');
};
}
function ComponentPositionResolutionLayerIterator(context) {
@ -12998,7 +12998,7 @@ var JpxImage = (function JpxImageClosure() { @@ -12998,7 +12998,7 @@ var JpxImage = (function JpxImageClosure() {
}
py = 0;
}
throw new Error('JPX Error: Out of packets');
error('JPX Error: Out of packets');
};
}
function getPrecinctIndexIfExist(
@ -13178,8 +13178,7 @@ var JpxImage = (function JpxImageClosure() { @@ -13178,8 +13178,7 @@ var JpxImage = (function JpxImageClosure() {
new ComponentPositionResolutionLayerIterator(context);
break;
default:
throw new Error('JPX Error: Unsupported progression order ' +
progressionOrder);
error('JPX Error: Unsupported progression order ' + progressionOrder);
}
}
function parseTilePackets(context, data, offset, dataLength) {
@ -14116,7 +14115,7 @@ var JpxImage = (function JpxImageClosure() { @@ -14116,7 +14115,7 @@ var JpxImage = (function JpxImageClosure() {
(decoder.readBit(contexts, UNIFORM_CONTEXT) << 1) |
decoder.readBit(contexts, UNIFORM_CONTEXT);
if (symbol !== 0xA) {
throw new Error('JPX Error: Invalid segmentation symbol');
error('JPX Error: Invalid segmentation symbol');
}
}
};

4
build/pdf.js

@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdf = {})); @@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdf = {}));
// Use strict in our context only - users might not want it
'use strict';
var pdfjsVersion = '1.5.452';
var pdfjsBuild = '230b1e3';
var pdfjsVersion = '1.5.454';
var pdfjsBuild = '03588cc';
var pdfjsFilePath =
typeof document !== 'undefined' && document.currentScript ?

43
build/pdf.worker.js vendored

@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfWorker = {})); @@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfWorker = {}));
// Use strict in our context only - users might not want it
'use strict';
var pdfjsVersion = '1.5.452';
var pdfjsBuild = '230b1e3';
var pdfjsVersion = '1.5.454';
var pdfjsBuild = '03588cc';
var pdfjsFilePath =
typeof document !== 'undefined' && document.currentScript ?
@ -12175,10 +12175,11 @@ exports.JpegImage = JpegImage; @@ -12175,10 +12175,11 @@ exports.JpegImage = JpegImage;
}(this, function (exports, sharedUtil, coreArithmeticDecoder) {
var info = sharedUtil.info;
var warn = sharedUtil.warn;
var error = sharedUtil.error;
var log2 = sharedUtil.log2;
var readUint16 = sharedUtil.readUint16;
var readUint32 = sharedUtil.readUint32;
var warn = sharedUtil.warn;
var ArithmeticDecoder = coreArithmeticDecoder.ArithmeticDecoder;
var JpxImage = (function JpxImageClosure() {
@ -12220,7 +12221,7 @@ var JpxImage = (function JpxImageClosure() { @@ -12220,7 +12221,7 @@ var JpxImage = (function JpxImageClosure() {
lbox = length - position + headerSize;
}
if (lbox < headerSize) {
throw new Error('JPX Error: Invalid box field size');
error('JPX Error: Invalid box field size');
}
var dataLength = lbox - headerSize;
var jumpDataLength = true;
@ -12298,12 +12299,12 @@ var JpxImage = (function JpxImageClosure() { @@ -12298,12 +12299,12 @@ var JpxImage = (function JpxImageClosure() {
return;
}
}
throw new Error('JPX Error: No size marker found in JPX stream');
error('JPX Error: No size marker found in JPX stream');
},
parseCodestream: function JpxImage_parseCodestream(data, start, end) {
var context = {};
try {
var doNotRecover = false;
try {
var position = start;
while (position + 1 < end) {
var code = readUint16(data, position);
@ -12366,7 +12367,7 @@ var JpxImage = (function JpxImageClosure() { @@ -12366,7 +12367,7 @@ var JpxImage = (function JpxImageClosure() {
scalarExpounded = true;
break;
default:
throw new Error('JPX Error: Invalid SQcd value ' + sqcd);
throw new Error('Invalid SQcd value ' + sqcd);
}
qcd.noQuantization = (spqcdSize === 8);
qcd.scalarExpounded = scalarExpounded;
@ -12418,7 +12419,7 @@ var JpxImage = (function JpxImageClosure() { @@ -12418,7 +12419,7 @@ var JpxImage = (function JpxImageClosure() {
scalarExpounded = true;
break;
default:
throw new Error('JPX Error: Invalid SQcd value ' + sqcd);
throw new Error('Invalid SQcd value ' + sqcd);
}
qcc.noQuantization = (spqcdSize === 8);
qcc.scalarExpounded = scalarExpounded;
@ -12496,7 +12497,7 @@ var JpxImage = (function JpxImageClosure() { @@ -12496,7 +12497,7 @@ var JpxImage = (function JpxImageClosure() {
}
if (unsupported.length > 0) {
doNotRecover = true;
throw new Error('JPX Error: Unsupported COD options (' +
throw new Error('Unsupported COD options (' +
unsupported.join(', ') + ')');
}
if (context.mainHeader) {
@ -12544,19 +12545,18 @@ var JpxImage = (function JpxImageClosure() { @@ -12544,19 +12545,18 @@ var JpxImage = (function JpxImageClosure() {
// skipping content
break;
case 0xFF53: // Coding style component (COC)
throw new Error('JPX Error: Codestream code 0xFF53 (COC) is ' +
throw new Error('Codestream code 0xFF53 (COC) is ' +
'not implemented');
default:
throw new Error('JPX Error: Unknown codestream code: ' +
code.toString(16));
throw new Error('Unknown codestream code: ' + code.toString(16));
}
position += length;
}
} catch (e) {
if (doNotRecover || this.failOnCorruptedImage) {
throw e;
error('JPX Error: ' + e.message);
} else {
warn('Trying to recover from ' + e.message);
warn('JPX: Trying to recover from: ' + e.message);
}
}
this.tiles = transformComponents(context);
@ -12806,7 +12806,7 @@ var JpxImage = (function JpxImageClosure() { @@ -12806,7 +12806,7 @@ var JpxImage = (function JpxImageClosure() {
}
r = 0;
}
throw new Error('JPX Error: Out of packets');
error('JPX Error: Out of packets');
};
}
function ResolutionLayerComponentPositionIterator(context) {
@ -12846,7 +12846,7 @@ var JpxImage = (function JpxImageClosure() { @@ -12846,7 +12846,7 @@ var JpxImage = (function JpxImageClosure() {
}
l = 0;
}
throw new Error('JPX Error: Out of packets');
error('JPX Error: Out of packets');
};
}
function ResolutionPositionComponentLayerIterator(context) {
@ -12905,7 +12905,7 @@ var JpxImage = (function JpxImageClosure() { @@ -12905,7 +12905,7 @@ var JpxImage = (function JpxImageClosure() {
}
p = 0;
}
throw new Error('JPX Error: Out of packets');
error('JPX Error: Out of packets');
};
}
function PositionComponentResolutionLayerIterator(context) {
@ -12952,7 +12952,7 @@ var JpxImage = (function JpxImageClosure() { @@ -12952,7 +12952,7 @@ var JpxImage = (function JpxImageClosure() {
}
px = 0;
}
throw new Error('JPX Error: Out of packets');
error('JPX Error: Out of packets');
};
}
function ComponentPositionResolutionLayerIterator(context) {
@ -12998,7 +12998,7 @@ var JpxImage = (function JpxImageClosure() { @@ -12998,7 +12998,7 @@ var JpxImage = (function JpxImageClosure() {
}
py = 0;
}
throw new Error('JPX Error: Out of packets');
error('JPX Error: Out of packets');
};
}
function getPrecinctIndexIfExist(
@ -13178,8 +13178,7 @@ var JpxImage = (function JpxImageClosure() { @@ -13178,8 +13178,7 @@ var JpxImage = (function JpxImageClosure() {
new ComponentPositionResolutionLayerIterator(context);
break;
default:
throw new Error('JPX Error: Unsupported progression order ' +
progressionOrder);
error('JPX Error: Unsupported progression order ' + progressionOrder);
}
}
function parseTilePackets(context, data, offset, dataLength) {
@ -14116,7 +14115,7 @@ var JpxImage = (function JpxImageClosure() { @@ -14116,7 +14115,7 @@ var JpxImage = (function JpxImageClosure() {
(decoder.readBit(contexts, UNIFORM_CONTEXT) << 1) |
decoder.readBit(contexts, UNIFORM_CONTEXT);
if (symbol !== 0xA) {
throw new Error('JPX Error: Invalid segmentation symbol');
error('JPX Error: Invalid segmentation symbol');
}
}
};

2
package.json

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

Loading…
Cancel
Save