Browse Source

PDF.js version 1.0.308

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

2
bower.json

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

14
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.306'; PDFJS.version = '1.0.308';
PDFJS.build = '2da1942'; PDFJS.build = 'fc85cfd';
(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
@ -9438,9 +9438,10 @@ var XRef = (function XRefClosure() {
} else { } else {
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 = 'R' + ref.num + '.' + ref.gen;
} else if (isStream(xrefEntry)) {
xrefEntry.dict.objId = 'R' + ref.num + '.' + ref.gen;
} }
return xrefEntry; return xrefEntry;
}, },
@ -20092,6 +20093,13 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
if (!isStream(xObject)) { if (!isStream(xObject)) {
continue; continue;
} }
if (xObject.dict.objId) {
if (processed[xObject.dict.objId]) {
// stream has objId and is processed already
continue;
}
processed[xObject.dict.objId] = true;
}
var xResources = xObject.dict.get('Resources'); var xResources = xObject.dict.get('Resources');
// Checking objId to detect an infinite loop. // Checking objId to detect an infinite loop.
if (isDict(xResources) && if (isDict(xResources) &&

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.306'; PDFJS.version = '1.0.308';
PDFJS.build = '2da1942'; PDFJS.build = 'fc85cfd';
(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

14
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.306'; PDFJS.version = '1.0.308';
PDFJS.build = '2da1942'; PDFJS.build = 'fc85cfd';
(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
@ -4931,9 +4931,10 @@ var XRef = (function XRefClosure() {
} else { } else {
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 = 'R' + ref.num + '.' + ref.gen;
} else if (isStream(xrefEntry)) {
xrefEntry.dict.objId = 'R' + ref.num + '.' + ref.gen;
} }
return xrefEntry; return xrefEntry;
}, },
@ -15585,6 +15586,13 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
if (!isStream(xObject)) { if (!isStream(xObject)) {
continue; continue;
} }
if (xObject.dict.objId) {
if (processed[xObject.dict.objId]) {
// stream has objId and is processed already
continue;
}
processed[xObject.dict.objId] = true;
}
var xResources = xObject.dict.get('Resources'); var xResources = xObject.dict.get('Resources');
// Checking objId to detect an infinite loop. // Checking objId to detect an infinite loop.
if (isDict(xResources) && if (isDict(xResources) &&

2
package.json

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