Browse Source

PDF.js version 1.0.408

master v1.0.408
Yury Delendik 10 years ago
parent
commit
b915e2cea6
  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.406", "version": "1.0.408",
"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.406'; PDFJS.version = '1.0.408';
PDFJS.build = 'c0a6b0f'; PDFJS.build = '84157e0';
(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
@ -8053,7 +8053,11 @@ var Ref = (function RefClosure() {
this.gen = gen; this.gen = gen;
} }
Ref.prototype = {}; Ref.prototype = {
toString: function Ref_toString() {
return 'R' + this.num + '.' + this.gen;
}
};
return Ref; return Ref;
})(); })();
@ -8067,15 +8071,15 @@ var RefSet = (function RefSetClosure() {
RefSet.prototype = { RefSet.prototype = {
has: function RefSet_has(ref) { has: function RefSet_has(ref) {
return ('R' + ref.num + '.' + ref.gen) in this.dict; return ref.toString() in this.dict;
}, },
put: function RefSet_put(ref) { put: function RefSet_put(ref) {
this.dict['R' + ref.num + '.' + ref.gen] = true; this.dict[ref.toString()] = true;
}, },
remove: function RefSet_remove(ref) { remove: function RefSet_remove(ref) {
delete this.dict['R' + ref.num + '.' + ref.gen]; delete this.dict[ref.toString()];
} }
}; };
@ -8089,19 +8093,19 @@ var RefSetCache = (function RefSetCacheClosure() {
RefSetCache.prototype = { RefSetCache.prototype = {
get: function RefSetCache_get(ref) { get: function RefSetCache_get(ref) {
return this.dict['R' + ref.num + '.' + ref.gen]; return this.dict[ref.toString()];
}, },
has: function RefSetCache_has(ref) { has: function RefSetCache_has(ref) {
return ('R' + ref.num + '.' + ref.gen) in this.dict; return ref.toString() in this.dict;
}, },
put: function RefSetCache_put(ref, obj) { put: function RefSetCache_put(ref, obj) {
this.dict['R' + ref.num + '.' + ref.gen] = obj; this.dict[ref.toString()] = obj;
}, },
putAlias: function RefSetCache_putAlias(ref, aliasRef) { putAlias: function RefSetCache_putAlias(ref, aliasRef) {
this.dict['R' + ref.num + '.' + ref.gen] = this.get(aliasRef); this.dict[ref.toString()] = this.get(aliasRef);
}, },
forEach: function RefSetCache_forEach(fn, thisArg) { forEach: function RefSetCache_forEach(fn, thisArg) {
@ -9015,9 +9019,9 @@ var XRef = (function XRefClosure() {
xrefEntry = this.fetchCompressed(xrefEntry, suppressEncryption); xrefEntry = this.fetchCompressed(xrefEntry, suppressEncryption);
} }
if (isDict(xrefEntry)){ if (isDict(xrefEntry)){
xrefEntry.objId = 'R' + ref.num + '.' + ref.gen; xrefEntry.objId = ref.toString();
} else if (isStream(xrefEntry)) { } else if (isStream(xrefEntry)) {
xrefEntry.dict.objId = 'R' + ref.num + '.' + ref.gen; xrefEntry.dict.objId = ref.toString();
} }
return xrefEntry; return xrefEntry;
}, },

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.406'; PDFJS.version = '1.0.408';
PDFJS.build = 'c0a6b0f'; PDFJS.build = '84157e0';
(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.406'; PDFJS.version = '1.0.408';
PDFJS.build = 'c0a6b0f'; PDFJS.build = '84157e0';
(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
@ -3217,7 +3217,11 @@ var Ref = (function RefClosure() {
this.gen = gen; this.gen = gen;
} }
Ref.prototype = {}; Ref.prototype = {
toString: function Ref_toString() {
return 'R' + this.num + '.' + this.gen;
}
};
return Ref; return Ref;
})(); })();
@ -3231,15 +3235,15 @@ var RefSet = (function RefSetClosure() {
RefSet.prototype = { RefSet.prototype = {
has: function RefSet_has(ref) { has: function RefSet_has(ref) {
return ('R' + ref.num + '.' + ref.gen) in this.dict; return ref.toString() in this.dict;
}, },
put: function RefSet_put(ref) { put: function RefSet_put(ref) {
this.dict['R' + ref.num + '.' + ref.gen] = true; this.dict[ref.toString()] = true;
}, },
remove: function RefSet_remove(ref) { remove: function RefSet_remove(ref) {
delete this.dict['R' + ref.num + '.' + ref.gen]; delete this.dict[ref.toString()];
} }
}; };
@ -3253,19 +3257,19 @@ var RefSetCache = (function RefSetCacheClosure() {
RefSetCache.prototype = { RefSetCache.prototype = {
get: function RefSetCache_get(ref) { get: function RefSetCache_get(ref) {
return this.dict['R' + ref.num + '.' + ref.gen]; return this.dict[ref.toString()];
}, },
has: function RefSetCache_has(ref) { has: function RefSetCache_has(ref) {
return ('R' + ref.num + '.' + ref.gen) in this.dict; return ref.toString() in this.dict;
}, },
put: function RefSetCache_put(ref, obj) { put: function RefSetCache_put(ref, obj) {
this.dict['R' + ref.num + '.' + ref.gen] = obj; this.dict[ref.toString()] = obj;
}, },
putAlias: function RefSetCache_putAlias(ref, aliasRef) { putAlias: function RefSetCache_putAlias(ref, aliasRef) {
this.dict['R' + ref.num + '.' + ref.gen] = this.get(aliasRef); this.dict[ref.toString()] = this.get(aliasRef);
}, },
forEach: function RefSetCache_forEach(fn, thisArg) { forEach: function RefSetCache_forEach(fn, thisArg) {
@ -4179,9 +4183,9 @@ var XRef = (function XRefClosure() {
xrefEntry = this.fetchCompressed(xrefEntry, suppressEncryption); xrefEntry = this.fetchCompressed(xrefEntry, suppressEncryption);
} }
if (isDict(xrefEntry)){ if (isDict(xrefEntry)){
xrefEntry.objId = 'R' + ref.num + '.' + ref.gen; xrefEntry.objId = ref.toString();
} else if (isStream(xrefEntry)) { } else if (isStream(xrefEntry)) {
xrefEntry.dict.objId = 'R' + ref.num + '.' + ref.gen; xrefEntry.dict.objId = ref.toString();
} }
return xrefEntry; return xrefEntry;
}, },

2
package.json

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