Browse Source

PDF.js version 1.1.503

master v1.1.503
Pdf Bot 9 years ago
parent
commit
b8f703bfb8
  1. 2
      bower.json
  2. 11
      build/pdf.combined.js
  3. 4
      build/pdf.js
  4. 11
      build/pdf.worker.js
  5. 2
      package.json

2
bower.json

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

11
build/pdf.combined.js

@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.1.500'; PDFJS.version = '1.1.503';
PDFJS.build = '39d7593'; PDFJS.build = '5e4910f';
(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
@ -10590,6 +10590,7 @@ var XRef = (function XRefClosure() {
} }
return skipped; return skipped;
} }
var objRegExp = /^(\d+)\s+(\d+)\s+obj\b/;
var trailerBytes = new Uint8Array([116, 114, 97, 105, 108, 101, 114]); var trailerBytes = new Uint8Array([116, 114, 97, 105, 108, 101, 114]);
var startxrefBytes = new Uint8Array([115, 116, 97, 114, 116, 120, 114, var startxrefBytes = new Uint8Array([115, 116, 97, 114, 116, 120, 114,
101, 102]); 101, 102]);
@ -10627,7 +10628,7 @@ var XRef = (function XRefClosure() {
position += skipUntil(buffer, position, trailerBytes); position += skipUntil(buffer, position, trailerBytes);
trailers.push(position); trailers.push(position);
position += skipUntil(buffer, position, startxrefBytes); position += skipUntil(buffer, position, startxrefBytes);
} else if ((m = /^(\d+)\s+(\d+)\s+obj\b/.exec(token))) { } else if ((m = objRegExp.exec(token))) {
if (typeof this.entries[m[1]] === 'undefined') { if (typeof this.entries[m[1]] === 'undefined') {
this.entries[m[1]] = { this.entries[m[1]] = {
offset: position - stream.start, offset: position - stream.start,
@ -10648,6 +10649,10 @@ var XRef = (function XRefClosure() {
} }
position += contentLength; position += contentLength;
} else if (token.indexOf('trailer') === 0 &&
(token.length === 7 || /\s/.test(token[7]))) {
trailers.push(position);
position += skipUntil(buffer, position, startxrefBytes);
} else { } else {
position += token.length + 1; position += token.length + 1;
} }

4
build/pdf.js

@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.1.500'; PDFJS.version = '1.1.503';
PDFJS.build = '39d7593'; PDFJS.build = '5e4910f';
(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

11
build/pdf.worker.js vendored

@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.1.500'; PDFJS.version = '1.1.503';
PDFJS.build = '39d7593'; PDFJS.build = '5e4910f';
(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
@ -4139,6 +4139,7 @@ var XRef = (function XRefClosure() {
} }
return skipped; return skipped;
} }
var objRegExp = /^(\d+)\s+(\d+)\s+obj\b/;
var trailerBytes = new Uint8Array([116, 114, 97, 105, 108, 101, 114]); var trailerBytes = new Uint8Array([116, 114, 97, 105, 108, 101, 114]);
var startxrefBytes = new Uint8Array([115, 116, 97, 114, 116, 120, 114, var startxrefBytes = new Uint8Array([115, 116, 97, 114, 116, 120, 114,
101, 102]); 101, 102]);
@ -4176,7 +4177,7 @@ var XRef = (function XRefClosure() {
position += skipUntil(buffer, position, trailerBytes); position += skipUntil(buffer, position, trailerBytes);
trailers.push(position); trailers.push(position);
position += skipUntil(buffer, position, startxrefBytes); position += skipUntil(buffer, position, startxrefBytes);
} else if ((m = /^(\d+)\s+(\d+)\s+obj\b/.exec(token))) { } else if ((m = objRegExp.exec(token))) {
if (typeof this.entries[m[1]] === 'undefined') { if (typeof this.entries[m[1]] === 'undefined') {
this.entries[m[1]] = { this.entries[m[1]] = {
offset: position - stream.start, offset: position - stream.start,
@ -4197,6 +4198,10 @@ var XRef = (function XRefClosure() {
} }
position += contentLength; position += contentLength;
} else if (token.indexOf('trailer') === 0 &&
(token.length === 7 || /\s/.test(token[7]))) {
trailers.push(position);
position += skipUntil(buffer, position, startxrefBytes);
} else { } else {
position += token.length + 1; position += token.length + 1;
} }

2
package.json

@ -1,6 +1,6 @@
{ {
"name": "pdfjs-dist", "name": "pdfjs-dist",
"version": "1.1.500", "version": "1.1.503",
"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