Browse Source

PDF.js version 1.1.138

master v1.1.138
Pdf Bot 10 years ago
parent
commit
946f8f9e49
  1. 2
      bower.json
  2. 15
      build/pdf.combined.js
  3. 4
      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.1.136", "version": "1.1.138",
"main": [ "main": [
"build/pdf.js", "build/pdf.js",
"build/pdf.worker.js" "build/pdf.worker.js"

15
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.136'; PDFJS.version = '1.1.138';
PDFJS.build = 'd7aa95d'; PDFJS.build = '9098233';
(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
@ -17907,16 +17907,23 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
// var x = pt[0]; // var x = pt[0];
// var y = pt[1]; // var y = pt[1];
var charSpacing = 0;
if (textChunk.str.length > 0) {
// Apply char spacing only when there are chars.
// As a result there is only spacing between glyphs.
charSpacing = textState.charSpacing;
}
var tx = 0; var tx = 0;
var ty = 0; var ty = 0;
if (!font.vertical) { if (!font.vertical) {
var w0 = glyphWidth * textState.fontMatrix[0]; var w0 = glyphWidth * textState.fontMatrix[0];
tx = (w0 * textState.fontSize + textState.charSpacing) * tx = (w0 * textState.fontSize + charSpacing) *
textState.textHScale; textState.textHScale;
width += tx; width += tx;
} else { } else {
var w1 = glyphWidth * textState.fontMatrix[0]; var w1 = glyphWidth * textState.fontMatrix[0];
ty = w1 * textState.fontSize + textState.charSpacing; ty = w1 * textState.fontSize + charSpacing;
height += ty; height += ty;
} }
textState.translateTextMatrix(tx, ty); textState.translateTextMatrix(tx, ty);

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.136'; PDFJS.version = '1.1.138';
PDFJS.build = 'd7aa95d'; PDFJS.build = '9098233';
(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

15
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.136'; PDFJS.version = '1.1.138';
PDFJS.build = 'd7aa95d'; PDFJS.build = '9098233';
(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
@ -11554,16 +11554,23 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
// var x = pt[0]; // var x = pt[0];
// var y = pt[1]; // var y = pt[1];
var charSpacing = 0;
if (textChunk.str.length > 0) {
// Apply char spacing only when there are chars.
// As a result there is only spacing between glyphs.
charSpacing = textState.charSpacing;
}
var tx = 0; var tx = 0;
var ty = 0; var ty = 0;
if (!font.vertical) { if (!font.vertical) {
var w0 = glyphWidth * textState.fontMatrix[0]; var w0 = glyphWidth * textState.fontMatrix[0];
tx = (w0 * textState.fontSize + textState.charSpacing) * tx = (w0 * textState.fontSize + charSpacing) *
textState.textHScale; textState.textHScale;
width += tx; width += tx;
} else { } else {
var w1 = glyphWidth * textState.fontMatrix[0]; var w1 = glyphWidth * textState.fontMatrix[0];
ty = w1 * textState.fontSize + textState.charSpacing; ty = w1 * textState.fontSize + charSpacing;
height += ty; height += ty;
} }
textState.translateTextMatrix(tx, ty); textState.translateTextMatrix(tx, ty);

2
package.json

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