Browse Source

PDF.js version 1.5.496 - See mozilla/pdf.js@869914529dfa9008e9c1fe0335b8494e6073e2c2

master v1.5.496
Pdf Bot 8 years ago
parent
commit
462762fd07
  1. 2
      bower.json
  2. 10
      build/pdf.combined.js
  3. 4
      build/pdf.js
  4. 10
      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.494",
"version": "1.5.496",
"main": [
"build/pdf.js",
"build/pdf.worker.js"

10
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.494';
var pdfjsBuild = 'b4be1e9';
var pdfjsVersion = '1.5.496';
var pdfjsBuild = '8699145';
var pdfjsFilePath =
typeof document !== 'undefined' && document.currentScript ?
@ -11509,6 +11509,12 @@ var JpegImage = (function JpegImageClosure() { @@ -11509,6 +11509,12 @@ var JpegImage = (function JpegImageClosure() {
// find marker
bitsCount = 0;
marker = (data[offset] << 8) | data[offset + 1];
// Some bad images seem to pad Scan blocks with zero bytes, skip past
// those to attempt to find a valid marker (fixes issue4090.pdf).
while (data[offset] === 0x00 && offset < data.length - 1) {
offset++;
marker = (data[offset] << 8) | data[offset + 1];
}
if (marker <= 0xFF00) {
error('JPEG error: marker was not found');
}

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.494';
var pdfjsBuild = 'b4be1e9';
var pdfjsVersion = '1.5.496';
var pdfjsBuild = '8699145';
var pdfjsFilePath =
typeof document !== 'undefined' && document.currentScript ?

10
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.494';
var pdfjsBuild = 'b4be1e9';
var pdfjsVersion = '1.5.496';
var pdfjsBuild = '8699145';
var pdfjsFilePath =
typeof document !== 'undefined' && document.currentScript ?
@ -11509,6 +11509,12 @@ var JpegImage = (function JpegImageClosure() { @@ -11509,6 +11509,12 @@ var JpegImage = (function JpegImageClosure() {
// find marker
bitsCount = 0;
marker = (data[offset] << 8) | data[offset + 1];
// Some bad images seem to pad Scan blocks with zero bytes, skip past
// those to attempt to find a valid marker (fixes issue4090.pdf).
while (data[offset] === 0x00 && offset < data.length - 1) {
offset++;
marker = (data[offset] << 8) | data[offset + 1];
}
if (marker <= 0xFF00) {
error('JPEG error: marker was not found');
}

2
package.json

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

Loading…
Cancel
Save