Browse Source

PDF.js version 1.0.450

master v1.0.450
Yury Delendik 10 years ago
parent
commit
f0d29d3d9c
  1. 2
      bower.json
  2. 28
      build/pdf.combined.js
  3. 4
      build/pdf.js
  4. 28
      build/pdf.worker.js
  5. 2
      package.json

2
bower.json

@ -1,6 +1,6 @@
{ {
"name": "pdfjs-dist", "name": "pdfjs-dist",
"version": "1.0.448", "version": "1.0.450",
"keywords": [ "keywords": [
"Mozilla", "Mozilla",
"pdf", "pdf",

28
build/pdf.combined.js

@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.0.448'; PDFJS.version = '1.0.450';
PDFJS.build = 'b5e5de0'; PDFJS.build = '0237d50';
(function pdfjsWrapper() { (function pdfjsWrapper() {
// Use strict in our context only - users might not want it // Use strict in our context only - users might not want it
@ -41441,11 +41441,17 @@ var StringStream = (function StringStreamClosure() {
// super class for the decoding streams // super class for the decoding streams
var DecodeStream = (function DecodeStreamClosure() { var DecodeStream = (function DecodeStreamClosure() {
// Lots of DecodeStreams are created whose buffers are never used. For these
// we share a single empty buffer. This is (a) space-efficient and (b) avoids
// having special cases that would be required if we used |null| for an empty
// buffer.
var emptyBuffer = new Uint8Array(0);
function DecodeStream(maybeMinBufferLength) { function DecodeStream(maybeMinBufferLength) {
this.pos = 0; this.pos = 0;
this.bufferLength = 0; this.bufferLength = 0;
this.eof = false; this.eof = false;
this.buffer = null; this.buffer = emptyBuffer;
this.minBufferLength = 512; this.minBufferLength = 512;
if (maybeMinBufferLength) { if (maybeMinBufferLength) {
// Compute the first power of two that is as big as maybeMinBufferLength. // Compute the first power of two that is as big as maybeMinBufferLength.
@ -41464,23 +41470,15 @@ var DecodeStream = (function DecodeStreamClosure() {
}, },
ensureBuffer: function DecodeStream_ensureBuffer(requested) { ensureBuffer: function DecodeStream_ensureBuffer(requested) {
var buffer = this.buffer; var buffer = this.buffer;
var current; if (requested <= buffer.byteLength) {
if (buffer) {
current = buffer.byteLength;
if (requested <= current) {
return buffer; return buffer;
} }
} else {
current = 0;
}
var size = this.minBufferLength; var size = this.minBufferLength;
while (size < requested) { while (size < requested) {
size *= 2; size *= 2;
} }
var buffer2 = new Uint8Array(size); var buffer2 = new Uint8Array(size);
if (buffer) {
buffer2.set(buffer); buffer2.set(buffer);
}
return (this.buffer = buffer2); return (this.buffer = buffer2);
}, },
getByte: function DecodeStream_getByte() { getByte: function DecodeStream_getByte() {
@ -41524,12 +41522,6 @@ var DecodeStream = (function DecodeStreamClosure() {
this.readBlock(); this.readBlock();
} }
end = this.bufferLength; end = this.bufferLength;
// checking if bufferLength is still 0 then
// the buffer has to be initialized
if (!end) {
this.buffer = new Uint8Array(0);
}
} }
this.pos = end; this.pos = end;

4
build/pdf.js

@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.0.448'; PDFJS.version = '1.0.450';
PDFJS.build = 'b5e5de0'; PDFJS.build = '0237d50';
(function pdfjsWrapper() { (function pdfjsWrapper() {
// Use strict in our context only - users might not want it // Use strict in our context only - users might not want it

28
build/pdf.worker.js vendored

@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.0.448'; PDFJS.version = '1.0.450';
PDFJS.build = 'b5e5de0'; PDFJS.build = '0237d50';
(function pdfjsWrapper() { (function pdfjsWrapper() {
// Use strict in our context only - users might not want it // Use strict in our context only - users might not want it
@ -36595,11 +36595,17 @@ var StringStream = (function StringStreamClosure() {
// super class for the decoding streams // super class for the decoding streams
var DecodeStream = (function DecodeStreamClosure() { var DecodeStream = (function DecodeStreamClosure() {
// Lots of DecodeStreams are created whose buffers are never used. For these
// we share a single empty buffer. This is (a) space-efficient and (b) avoids
// having special cases that would be required if we used |null| for an empty
// buffer.
var emptyBuffer = new Uint8Array(0);
function DecodeStream(maybeMinBufferLength) { function DecodeStream(maybeMinBufferLength) {
this.pos = 0; this.pos = 0;
this.bufferLength = 0; this.bufferLength = 0;
this.eof = false; this.eof = false;
this.buffer = null; this.buffer = emptyBuffer;
this.minBufferLength = 512; this.minBufferLength = 512;
if (maybeMinBufferLength) { if (maybeMinBufferLength) {
// Compute the first power of two that is as big as maybeMinBufferLength. // Compute the first power of two that is as big as maybeMinBufferLength.
@ -36618,23 +36624,15 @@ var DecodeStream = (function DecodeStreamClosure() {
}, },
ensureBuffer: function DecodeStream_ensureBuffer(requested) { ensureBuffer: function DecodeStream_ensureBuffer(requested) {
var buffer = this.buffer; var buffer = this.buffer;
var current; if (requested <= buffer.byteLength) {
if (buffer) {
current = buffer.byteLength;
if (requested <= current) {
return buffer; return buffer;
} }
} else {
current = 0;
}
var size = this.minBufferLength; var size = this.minBufferLength;
while (size < requested) { while (size < requested) {
size *= 2; size *= 2;
} }
var buffer2 = new Uint8Array(size); var buffer2 = new Uint8Array(size);
if (buffer) {
buffer2.set(buffer); buffer2.set(buffer);
}
return (this.buffer = buffer2); return (this.buffer = buffer2);
}, },
getByte: function DecodeStream_getByte() { getByte: function DecodeStream_getByte() {
@ -36678,12 +36676,6 @@ var DecodeStream = (function DecodeStreamClosure() {
this.readBlock(); this.readBlock();
} }
end = this.bufferLength; end = this.bufferLength;
// checking if bufferLength is still 0 then
// the buffer has to be initialized
if (!end) {
this.buffer = new Uint8Array(0);
}
} }
this.pos = end; this.pos = end;

2
package.json

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

Loading…
Cancel
Save