From 7b09ccf074e624cdb9277fa87ca46379d933db5d Mon Sep 17 00:00:00 2001 From: Pdf Bot Date: Thu, 21 Apr 2016 16:23:07 +0100 Subject: [PATCH] PDF.js version 1.4.263 - See mozilla/pdf.js@d5c000850aeee9ce19b732d3c09d8d5fe596c98d --- bower.json | 2 +- build/pdf.combined.js | 16 ++++++++-------- build/pdf.js | 4 ++-- build/pdf.worker.js | 16 ++++++++-------- package.json | 2 +- 5 files changed, 20 insertions(+), 20 deletions(-) diff --git a/bower.json b/bower.json index 54c9d1bac..a9a93c12a 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.4.260", + "version": "1.4.263", "main": [ "build/pdf.js", "build/pdf.worker.js" diff --git a/build/pdf.combined.js b/build/pdf.combined.js index c6d17c44e..0bb234bb1 100644 --- a/build/pdf.combined.js +++ b/build/pdf.combined.js @@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfCombined = {})); // Use strict in our context only - users might not want it 'use strict'; -var pdfjsVersion = '1.4.260'; -var pdfjsBuild = '2001953'; +var pdfjsVersion = '1.4.263'; +var pdfjsBuild = 'd5c0008'; var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? @@ -43425,6 +43425,12 @@ var XRef = (function XRefClosure() { error('Invalid entry in XRef subsection: ' + first + ', ' + count); } + // The first xref table entry, i.e. obj 0, should be free. Attempting + // to adjust an incorrect first obj # (fixes issue 3248 and 7229). + if (i === 0 && entry.free && first === 1) { + first = 0; + } + if (!this.entries[i + first]) { this.entries[i + first] = entry; } @@ -43438,12 +43444,6 @@ var XRef = (function XRefClosure() { delete tableState.entryCount; } - // Per issue 3248: hp scanners generate bad XRef - if (first === 1 && this.entries[1] && this.entries[1].free) { - // shifting the entries - this.entries.shift(); - } - // Sanity check: as per spec, first object must be free if (this.entries[0] && !this.entries[0].free) { error('Invalid XRef table: unexpected first object'); diff --git a/build/pdf.js b/build/pdf.js index e9b0869d5..5bfacb018 100644 --- a/build/pdf.js +++ b/build/pdf.js @@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdf = {})); // Use strict in our context only - users might not want it 'use strict'; -var pdfjsVersion = '1.4.260'; -var pdfjsBuild = '2001953'; +var pdfjsVersion = '1.4.263'; +var pdfjsBuild = 'd5c0008'; var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? diff --git a/build/pdf.worker.js b/build/pdf.worker.js index 8b82b8725..80a814aca 100644 --- a/build/pdf.worker.js +++ b/build/pdf.worker.js @@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfWorker = {})); // Use strict in our context only - users might not want it 'use strict'; -var pdfjsVersion = '1.4.260'; -var pdfjsBuild = '2001953'; +var pdfjsVersion = '1.4.263'; +var pdfjsBuild = 'd5c0008'; var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? @@ -35079,6 +35079,12 @@ var XRef = (function XRefClosure() { error('Invalid entry in XRef subsection: ' + first + ', ' + count); } + // The first xref table entry, i.e. obj 0, should be free. Attempting + // to adjust an incorrect first obj # (fixes issue 3248 and 7229). + if (i === 0 && entry.free && first === 1) { + first = 0; + } + if (!this.entries[i + first]) { this.entries[i + first] = entry; } @@ -35092,12 +35098,6 @@ var XRef = (function XRefClosure() { delete tableState.entryCount; } - // Per issue 3248: hp scanners generate bad XRef - if (first === 1 && this.entries[1] && this.entries[1].free) { - // shifting the entries - this.entries.shift(); - } - // Sanity check: as per spec, first object must be free if (this.entries[0] && !this.entries[0].free) { error('Invalid XRef table: unexpected first object'); diff --git a/package.json b/package.json index d9595bbae..416ae3fb0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.4.260", + "version": "1.4.263", "main": "build/pdf.js", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [