Browse Source

PDF.js version 1.0.377

master v1.0.377
Yury Delendik 11 years ago
parent
commit
b42c106662
  1. 2
      bower.json
  2. 15
      build/pdf.combined.js
  3. 9
      build/pdf.js
  4. 15
      build/pdf.worker.js
  5. 2
      package.json

2
bower.json

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

15
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.374'; PDFJS.version = '1.0.377';
PDFJS.build = '22cfcbc'; PDFJS.build = '5a2e511';
(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
@ -731,12 +731,11 @@ var Util = PDFJS.Util = (function UtilClosure() {
return num < 0 ? -1 : 1; return num < 0 ? -1 : 1;
}; };
// TODO(mack): Rename appendToArray Util.appendToArray = function Util_appendToArray(arr1, arr2) {
Util.concatenateToArray = function concatenateToArray(arr1, arr2) {
Array.prototype.push.apply(arr1, arr2); Array.prototype.push.apply(arr1, arr2);
}; };
Util.prependToArray = function concatenateToArray(arr1, arr2) { Util.prependToArray = function Util_prependToArray(arr1, arr2) {
Array.prototype.unshift.apply(arr1, arr2); Array.prototype.unshift.apply(arr1, arr2);
}; };
@ -22519,7 +22518,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
var name = args[0].name; var name = args[0].name;
if (xobjsCache.key === name) { if (xobjsCache.key === name) {
if (xobjsCache.texts) { if (xobjsCache.texts) {
Util.concatenateToArray(bidiTexts, xobjsCache.texts.items); Util.appendToArray(bidiTexts, xobjsCache.texts.items);
Util.extendObj(textContent.styles, xobjsCache.texts.styles); Util.extendObj(textContent.styles, xobjsCache.texts.styles);
} }
break; break;
@ -22550,7 +22549,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
return self.getTextContent(xobj, return self.getTextContent(xobj,
xobj.dict.get('Resources') || resources, stateManager). xobj.dict.get('Resources') || resources, stateManager).
then(function (formTextContent) { then(function (formTextContent) {
Util.concatenateToArray(bidiTexts, formTextContent.items); Util.appendToArray(bidiTexts, formTextContent.items);
Util.extendObj(textContent.styles, formTextContent.styles); Util.extendObj(textContent.styles, formTextContent.styles);
stateManager.restore(); stateManager.restore();
@ -41525,7 +41524,7 @@ var StreamsSequenceStream = (function StreamsSequenceStreamClosure() {
for (var i = 0, ii = this.streams.length; i < ii; i++) { for (var i = 0, ii = this.streams.length; i < ii; i++) {
var stream = this.streams[i]; var stream = this.streams[i];
if (stream.getBaseStreams) { if (stream.getBaseStreams) {
Util.concatenateToArray(baseStreams, stream.getBaseStreams()); Util.appendToArray(baseStreams, stream.getBaseStreams());
} }
} }
return baseStreams; return baseStreams;

9
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.374'; PDFJS.version = '1.0.377';
PDFJS.build = '22cfcbc'; PDFJS.build = '5a2e511';
(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
@ -731,12 +731,11 @@ var Util = PDFJS.Util = (function UtilClosure() {
return num < 0 ? -1 : 1; return num < 0 ? -1 : 1;
}; };
// TODO(mack): Rename appendToArray Util.appendToArray = function Util_appendToArray(arr1, arr2) {
Util.concatenateToArray = function concatenateToArray(arr1, arr2) {
Array.prototype.push.apply(arr1, arr2); Array.prototype.push.apply(arr1, arr2);
}; };
Util.prependToArray = function concatenateToArray(arr1, arr2) { Util.prependToArray = function Util_prependToArray(arr1, arr2) {
Array.prototype.unshift.apply(arr1, arr2); Array.prototype.unshift.apply(arr1, arr2);
}; };

15
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.374'; PDFJS.version = '1.0.377';
PDFJS.build = '22cfcbc'; PDFJS.build = '5a2e511';
(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
@ -731,12 +731,11 @@ var Util = PDFJS.Util = (function UtilClosure() {
return num < 0 ? -1 : 1; return num < 0 ? -1 : 1;
}; };
// TODO(mack): Rename appendToArray Util.appendToArray = function Util_appendToArray(arr1, arr2) {
Util.concatenateToArray = function concatenateToArray(arr1, arr2) {
Array.prototype.push.apply(arr1, arr2); Array.prototype.push.apply(arr1, arr2);
}; };
Util.prependToArray = function concatenateToArray(arr1, arr2) { Util.prependToArray = function Util_prependToArray(arr1, arr2) {
Array.prototype.unshift.apply(arr1, arr2); Array.prototype.unshift.apply(arr1, arr2);
}; };
@ -17976,7 +17975,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
var name = args[0].name; var name = args[0].name;
if (xobjsCache.key === name) { if (xobjsCache.key === name) {
if (xobjsCache.texts) { if (xobjsCache.texts) {
Util.concatenateToArray(bidiTexts, xobjsCache.texts.items); Util.appendToArray(bidiTexts, xobjsCache.texts.items);
Util.extendObj(textContent.styles, xobjsCache.texts.styles); Util.extendObj(textContent.styles, xobjsCache.texts.styles);
} }
break; break;
@ -18007,7 +18006,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
return self.getTextContent(xobj, return self.getTextContent(xobj,
xobj.dict.get('Resources') || resources, stateManager). xobj.dict.get('Resources') || resources, stateManager).
then(function (formTextContent) { then(function (formTextContent) {
Util.concatenateToArray(bidiTexts, formTextContent.items); Util.appendToArray(bidiTexts, formTextContent.items);
Util.extendObj(textContent.styles, formTextContent.styles); Util.extendObj(textContent.styles, formTextContent.styles);
stateManager.restore(); stateManager.restore();
@ -36982,7 +36981,7 @@ var StreamsSequenceStream = (function StreamsSequenceStreamClosure() {
for (var i = 0, ii = this.streams.length; i < ii; i++) { for (var i = 0, ii = this.streams.length; i < ii; i++) {
var stream = this.streams[i]; var stream = this.streams[i];
if (stream.getBaseStreams) { if (stream.getBaseStreams) {
Util.concatenateToArray(baseStreams, stream.getBaseStreams()); Util.appendToArray(baseStreams, stream.getBaseStreams());
} }
} }
return baseStreams; return baseStreams;

2
package.json

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