Browse Source

PDF.js version 1.1.295

master v1.1.295
Pdf Bot 10 years ago
parent
commit
55be8c6c00
  1. 2
      bower.json
  2. 26
      build/pdf.combined.js
  3. 4
      build/pdf.js
  4. 26
      build/pdf.worker.js
  5. 2
      package.json

2
bower.json

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

26
build/pdf.combined.js

@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { @@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {};
}
PDFJS.version = '1.1.293';
PDFJS.build = '1416a1b';
PDFJS.version = '1.1.295';
PDFJS.build = '367794f';
(function pdfjsWrapper() {
// Use strict in our context only - users might not want it
@ -8385,14 +8385,9 @@ var ChunkedStream = (function ChunkedStreamClosure() { @@ -8385,14 +8385,9 @@ var ChunkedStream = (function ChunkedStreamClosure() {
},
nextEmptyChunk: function ChunkedStream_nextEmptyChunk(beginChunk) {
var chunk, n;
for (chunk = beginChunk, n = this.numChunks; chunk < n; ++chunk) {
if (!this.loadedChunks[chunk]) {
return chunk;
}
}
// Wrap around to beginning
for (chunk = 0; chunk < beginChunk; ++chunk) {
var chunk, numChunks = this.numChunks;
for (var i = 0; i < numChunks; ++i) {
chunk = (beginChunk + i) % numChunks; // Wrap around to beginning
if (!this.loadedChunks[chunk]) {
return chunk;
}
@ -8669,7 +8664,7 @@ var ChunkedStreamManager = (function ChunkedStreamManagerClosure() { @@ -8669,7 +8664,7 @@ var ChunkedStreamManager = (function ChunkedStreamManagerClosure() {
this.requestChunks(chunksToRequest, callback);
},
// Groups a sorted array of chunks into as few continguous larger
// Groups a sorted array of chunks into as few contiguous larger
// chunks as possible
groupChunks: function ChunkedStreamManager_groupChunks(chunks) {
var groupedChunks = [];
@ -8794,15 +8789,6 @@ var ChunkedStreamManager = (function ChunkedStreamManagerClosure() { @@ -8794,15 +8789,6 @@ var ChunkedStreamManager = (function ChunkedStreamManagerClosure() {
},
getEndChunk: function ChunkedStreamManager_getEndChunk(end) {
if (end % this.chunkSize === 0) {
return end / this.chunkSize;
}
// 0 -> 0
// 1 -> 1
// 99 -> 1
// 100 -> 1
// 101 -> 2
var chunk = Math.floor((end - 1) / this.chunkSize) + 1;
return chunk;
}

4
build/pdf.js

@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { @@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {};
}
PDFJS.version = '1.1.293';
PDFJS.build = '1416a1b';
PDFJS.version = '1.1.295';
PDFJS.build = '367794f';
(function pdfjsWrapper() {
// Use strict in our context only - users might not want it

26
build/pdf.worker.js vendored

@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { @@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {};
}
PDFJS.version = '1.1.293';
PDFJS.build = '1416a1b';
PDFJS.version = '1.1.295';
PDFJS.build = '367794f';
(function pdfjsWrapper() {
// Use strict in our context only - users might not want it
@ -1979,14 +1979,9 @@ var ChunkedStream = (function ChunkedStreamClosure() { @@ -1979,14 +1979,9 @@ var ChunkedStream = (function ChunkedStreamClosure() {
},
nextEmptyChunk: function ChunkedStream_nextEmptyChunk(beginChunk) {
var chunk, n;
for (chunk = beginChunk, n = this.numChunks; chunk < n; ++chunk) {
if (!this.loadedChunks[chunk]) {
return chunk;
}
}
// Wrap around to beginning
for (chunk = 0; chunk < beginChunk; ++chunk) {
var chunk, numChunks = this.numChunks;
for (var i = 0; i < numChunks; ++i) {
chunk = (beginChunk + i) % numChunks; // Wrap around to beginning
if (!this.loadedChunks[chunk]) {
return chunk;
}
@ -2263,7 +2258,7 @@ var ChunkedStreamManager = (function ChunkedStreamManagerClosure() { @@ -2263,7 +2258,7 @@ var ChunkedStreamManager = (function ChunkedStreamManagerClosure() {
this.requestChunks(chunksToRequest, callback);
},
// Groups a sorted array of chunks into as few continguous larger
// Groups a sorted array of chunks into as few contiguous larger
// chunks as possible
groupChunks: function ChunkedStreamManager_groupChunks(chunks) {
var groupedChunks = [];
@ -2388,15 +2383,6 @@ var ChunkedStreamManager = (function ChunkedStreamManagerClosure() { @@ -2388,15 +2383,6 @@ var ChunkedStreamManager = (function ChunkedStreamManagerClosure() {
},
getEndChunk: function ChunkedStreamManager_getEndChunk(end) {
if (end % this.chunkSize === 0) {
return end / this.chunkSize;
}
// 0 -> 0
// 1 -> 1
// 99 -> 1
// 100 -> 1
// 101 -> 2
var chunk = Math.floor((end - 1) / this.chunkSize) + 1;
return chunk;
}

2
package.json

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
{
"name": "pdfjs-dist",
"version": "1.1.293",
"version": "1.1.295",
"description": "Generic build of Mozilla's PDF.js library.",
"keywords": [
"Mozilla",

Loading…
Cancel
Save