Browse Source

PDF.js version 1.1.490

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

2
bower.json

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

22
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.488'; PDFJS.version = '1.1.490';
PDFJS.build = 'a6761a5'; PDFJS.build = '1bdfc47';
(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
@ -37230,7 +37230,7 @@ var Parser = (function ParserClosure() {
var stream = lexer.stream; var stream = lexer.stream;
// Parse dictionary. // Parse dictionary.
var dict = new Dict(null); var dict = new Dict(this.xref);
while (!isCmd(this.buf1, 'ID') && !isEOF(this.buf1)) { while (!isCmd(this.buf1, 'ID') && !isEOF(this.buf1)) {
if (!isName(this.buf1)) { if (!isName(this.buf1)) {
error('Dictionary key must be a name object'); error('Dictionary key must be a name object');
@ -37244,7 +37244,7 @@ var Parser = (function ParserClosure() {
} }
// Extract the name of the first (i.e. the current) image filter. // Extract the name of the first (i.e. the current) image filter.
var filter = this.fetchIfRef(dict.get('Filter', 'F')), filterName; var filter = dict.get('Filter', 'F'), filterName;
if (isName(filter)) { if (isName(filter)) {
filterName = filter.name; filterName = filter.name;
} else if (isArray(filter) && isName(filter[0])) { } else if (isArray(filter) && isName(filter[0])) {
@ -37305,10 +37305,6 @@ var Parser = (function ParserClosure() {
return imageStream; return imageStream;
}, },
fetchIfRef: function Parser_fetchIfRef(obj) {
// not relying on the xref.fetchIfRef -- xref might not be set
return (isRef(obj) ? this.xref.fetch(obj) : obj);
},
makeStream: function Parser_makeStream(dict, cipherTransform) { makeStream: function Parser_makeStream(dict, cipherTransform) {
var lexer = this.lexer; var lexer = this.lexer;
var stream = lexer.stream; var stream = lexer.stream;
@ -37318,7 +37314,7 @@ var Parser = (function ParserClosure() {
var pos = stream.pos - 1; var pos = stream.pos - 1;
// get length // get length
var length = this.fetchIfRef(dict.get('Length')); var length = dict.get('Length');
if (!isInt(length)) { if (!isInt(length)) {
info('Bad ' + length + ' attribute in stream'); info('Bad ' + length + ' attribute in stream');
length = 0; length = 0;
@ -37388,8 +37384,8 @@ var Parser = (function ParserClosure() {
return stream; return stream;
}, },
filter: function Parser_filter(stream, dict, length) { filter: function Parser_filter(stream, dict, length) {
var filter = this.fetchIfRef(dict.get('Filter', 'F')); var filter = dict.get('Filter', 'F');
var params = this.fetchIfRef(dict.get('DecodeParms', 'DP')); var params = dict.get('DecodeParms', 'DP');
if (isName(filter)) { if (isName(filter)) {
return this.makeFilter(stream, filter.name, length, params); return this.makeFilter(stream, filter.name, length, params);
} }
@ -37421,8 +37417,8 @@ var Parser = (function ParserClosure() {
return new NullStream(stream); return new NullStream(stream);
} }
try { try {
if (params) { if (params && this.xref) {
params = this.fetchIfRef(params); params = this.xref.fetchIfRef(params);
} }
var xrefStreamStats = this.xref.stats.streamTypes; var xrefStreamStats = this.xref.stats.streamTypes;
if (name === 'FlateDecode' || name === 'Fl') { if (name === 'FlateDecode' || name === 'Fl') {

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.488'; PDFJS.version = '1.1.490';
PDFJS.build = 'a6761a5'; PDFJS.build = '1bdfc47';
(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

22
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.488'; PDFJS.version = '1.1.490';
PDFJS.build = 'a6761a5'; PDFJS.build = '1bdfc47';
(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
@ -30769,7 +30769,7 @@ var Parser = (function ParserClosure() {
var stream = lexer.stream; var stream = lexer.stream;
// Parse dictionary. // Parse dictionary.
var dict = new Dict(null); var dict = new Dict(this.xref);
while (!isCmd(this.buf1, 'ID') && !isEOF(this.buf1)) { while (!isCmd(this.buf1, 'ID') && !isEOF(this.buf1)) {
if (!isName(this.buf1)) { if (!isName(this.buf1)) {
error('Dictionary key must be a name object'); error('Dictionary key must be a name object');
@ -30783,7 +30783,7 @@ var Parser = (function ParserClosure() {
} }
// Extract the name of the first (i.e. the current) image filter. // Extract the name of the first (i.e. the current) image filter.
var filter = this.fetchIfRef(dict.get('Filter', 'F')), filterName; var filter = dict.get('Filter', 'F'), filterName;
if (isName(filter)) { if (isName(filter)) {
filterName = filter.name; filterName = filter.name;
} else if (isArray(filter) && isName(filter[0])) { } else if (isArray(filter) && isName(filter[0])) {
@ -30844,10 +30844,6 @@ var Parser = (function ParserClosure() {
return imageStream; return imageStream;
}, },
fetchIfRef: function Parser_fetchIfRef(obj) {
// not relying on the xref.fetchIfRef -- xref might not be set
return (isRef(obj) ? this.xref.fetch(obj) : obj);
},
makeStream: function Parser_makeStream(dict, cipherTransform) { makeStream: function Parser_makeStream(dict, cipherTransform) {
var lexer = this.lexer; var lexer = this.lexer;
var stream = lexer.stream; var stream = lexer.stream;
@ -30857,7 +30853,7 @@ var Parser = (function ParserClosure() {
var pos = stream.pos - 1; var pos = stream.pos - 1;
// get length // get length
var length = this.fetchIfRef(dict.get('Length')); var length = dict.get('Length');
if (!isInt(length)) { if (!isInt(length)) {
info('Bad ' + length + ' attribute in stream'); info('Bad ' + length + ' attribute in stream');
length = 0; length = 0;
@ -30927,8 +30923,8 @@ var Parser = (function ParserClosure() {
return stream; return stream;
}, },
filter: function Parser_filter(stream, dict, length) { filter: function Parser_filter(stream, dict, length) {
var filter = this.fetchIfRef(dict.get('Filter', 'F')); var filter = dict.get('Filter', 'F');
var params = this.fetchIfRef(dict.get('DecodeParms', 'DP')); var params = dict.get('DecodeParms', 'DP');
if (isName(filter)) { if (isName(filter)) {
return this.makeFilter(stream, filter.name, length, params); return this.makeFilter(stream, filter.name, length, params);
} }
@ -30960,8 +30956,8 @@ var Parser = (function ParserClosure() {
return new NullStream(stream); return new NullStream(stream);
} }
try { try {
if (params) { if (params && this.xref) {
params = this.fetchIfRef(params); params = this.xref.fetchIfRef(params);
} }
var xrefStreamStats = this.xref.stats.streamTypes; var xrefStreamStats = this.xref.stats.streamTypes;
if (name === 'FlateDecode' || name === 'Fl') { if (name === 'FlateDecode' || name === 'Fl') {

2
package.json

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