Browse Source

PDF.js version 1.0.400

master v1.0.400
Yury Delendik 10 years ago
parent
commit
6b3eb31153
  1. 2
      bower.json
  2. 17
      build/pdf.combined.js
  3. 4
      build/pdf.js
  4. 17
      build/pdf.worker.js
  5. 2
      package.json

2
bower.json

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

17
build/pdf.combined.js

@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') { @@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {};
}
PDFJS.version = '1.0.398';
PDFJS.build = '7a83291';
PDFJS.version = '1.0.400';
PDFJS.build = 'cf4bc42';
(function pdfjsWrapper() {
// Use strict in our context only - users might not want it
@ -22311,7 +22311,9 @@ var PartialEvaluator = (function PartialEvaluatorClosure() { @@ -22311,7 +22311,9 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
};
}
return {
str: '',
// |str| is initially an array which we push individual chars to, and
// then runBidi() overwrites it with the final string.
str: [],
dir: null,
width: 0,
height: 0,
@ -22321,7 +22323,8 @@ var PartialEvaluator = (function PartialEvaluatorClosure() { @@ -22321,7 +22323,8 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
}
function runBidi(textChunk) {
var bidiResult = PDFJS.bidi(textChunk.str, -1, textState.font.vertical);
var str = textChunk.str.join('');
var bidiResult = PDFJS.bidi(str, -1, textState.font.vertical);
textChunk.str = bidiResult.str;
textChunk.dir = bidiResult.dir;
return textChunk;
@ -22411,7 +22414,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() { @@ -22411,7 +22414,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
}
textState.translateTextMatrix(tx, ty);
textChunk.str += glyphUnicode;
textChunk.str.push(glyphUnicode);
}
var a = textState.textLineMatrix[0];
@ -22506,10 +22509,10 @@ var PartialEvaluator = (function PartialEvaluatorClosure() { @@ -22506,10 +22509,10 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
if (fakeSpaces > MULTI_SPACE_FACTOR) {
fakeSpaces = Math.round(fakeSpaces);
while (fakeSpaces--) {
textChunk.str += ' ';
textChunk.str.push(' ');
}
} else if (fakeSpaces > SPACE_FACTOR) {
textChunk.str += ' ';
textChunk.str.push(' ');
}
}
}

4
build/pdf.js

@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') { @@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {};
}
PDFJS.version = '1.0.398';
PDFJS.build = '7a83291';
PDFJS.version = '1.0.400';
PDFJS.build = 'cf4bc42';
(function pdfjsWrapper() {
// Use strict in our context only - users might not want it

17
build/pdf.worker.js vendored

@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') { @@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {};
}
PDFJS.version = '1.0.398';
PDFJS.build = '7a83291';
PDFJS.version = '1.0.400';
PDFJS.build = 'cf4bc42';
(function pdfjsWrapper() {
// Use strict in our context only - users might not want it
@ -17475,7 +17475,9 @@ var PartialEvaluator = (function PartialEvaluatorClosure() { @@ -17475,7 +17475,9 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
};
}
return {
str: '',
// |str| is initially an array which we push individual chars to, and
// then runBidi() overwrites it with the final string.
str: [],
dir: null,
width: 0,
height: 0,
@ -17485,7 +17487,8 @@ var PartialEvaluator = (function PartialEvaluatorClosure() { @@ -17485,7 +17487,8 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
}
function runBidi(textChunk) {
var bidiResult = PDFJS.bidi(textChunk.str, -1, textState.font.vertical);
var str = textChunk.str.join('');
var bidiResult = PDFJS.bidi(str, -1, textState.font.vertical);
textChunk.str = bidiResult.str;
textChunk.dir = bidiResult.dir;
return textChunk;
@ -17575,7 +17578,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() { @@ -17575,7 +17578,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
}
textState.translateTextMatrix(tx, ty);
textChunk.str += glyphUnicode;
textChunk.str.push(glyphUnicode);
}
var a = textState.textLineMatrix[0];
@ -17670,10 +17673,10 @@ var PartialEvaluator = (function PartialEvaluatorClosure() { @@ -17670,10 +17673,10 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
if (fakeSpaces > MULTI_SPACE_FACTOR) {
fakeSpaces = Math.round(fakeSpaces);
while (fakeSpaces--) {
textChunk.str += ' ';
textChunk.str.push(' ');
}
} else if (fakeSpaces > SPACE_FACTOR) {
textChunk.str += ' ';
textChunk.str.push(' ');
}
}
}

2
package.json

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
{
"name": "pdfjs-dist",
"version": "1.0.398",
"version": "1.0.400",
"description": "Generic build of Mozilla's PDF.js library.",
"keywords": [
"Mozilla",

Loading…
Cancel
Save