Browse Source

PDF.js version 1.5.194 - See mozilla/pdf.js@3d498792118bc3370ff1740cc585f4371870a14e

master v1.5.194
Pdf Bot 9 years ago
parent
commit
6285625075
  1. 2
      bower.json
  2. 8
      build/pdf.combined.js
  3. 8
      build/pdf.js
  4. 4
      build/pdf.worker.js
  5. 2
      package.json

2
bower.json

@ -1,6 +1,6 @@
{ {
"name": "pdfjs-dist", "name": "pdfjs-dist",
"version": "1.5.192", "version": "1.5.194",
"main": [ "main": [
"build/pdf.js", "build/pdf.js",
"build/pdf.worker.js" "build/pdf.worker.js"

8
build/pdf.combined.js

@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfCombined = {}));
// Use strict in our context only - users might not want it // Use strict in our context only - users might not want it
'use strict'; 'use strict';
var pdfjsVersion = '1.5.192'; var pdfjsVersion = '1.5.194';
var pdfjsBuild = 'f13119f'; var pdfjsBuild = '3d49879';
var pdfjsFilePath = var pdfjsFilePath =
typeof document !== 'undefined' && document.currentScript ? typeof document !== 'undefined' && document.currentScript ?
@ -25065,10 +25065,9 @@ var renderTextLayer = (function renderTextLayerClosure() {
} }
var width = ctx.measureText(textDiv.textContent).width; var width = ctx.measureText(textDiv.textContent).width;
if (width > 0) {
textLayerFrag.appendChild(textDiv); textLayerFrag.appendChild(textDiv);
var transform; var transform;
if (textDiv.dataset.canvasWidth !== undefined) { if (textDiv.dataset.canvasWidth !== undefined && width > 0) {
// Dataset values come of type string. // Dataset values come of type string.
var textScale = textDiv.dataset.canvasWidth / width; var textScale = textDiv.dataset.canvasWidth / width;
transform = 'scaleX(' + textScale + ')'; transform = 'scaleX(' + textScale + ')';
@ -25083,7 +25082,6 @@ var renderTextLayer = (function renderTextLayerClosure() {
CustomStyle.setProp('transform' , textDiv, transform); CustomStyle.setProp('transform' , textDiv, transform);
} }
} }
}
capability.resolve(); capability.resolve();
} }

8
build/pdf.js

@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdf = {}));
// Use strict in our context only - users might not want it // Use strict in our context only - users might not want it
'use strict'; 'use strict';
var pdfjsVersion = '1.5.192'; var pdfjsVersion = '1.5.194';
var pdfjsBuild = 'f13119f'; var pdfjsBuild = '3d49879';
var pdfjsFilePath = var pdfjsFilePath =
typeof document !== 'undefined' && document.currentScript ? typeof document !== 'undefined' && document.currentScript ?
@ -5284,10 +5284,9 @@ var renderTextLayer = (function renderTextLayerClosure() {
} }
var width = ctx.measureText(textDiv.textContent).width; var width = ctx.measureText(textDiv.textContent).width;
if (width > 0) {
textLayerFrag.appendChild(textDiv); textLayerFrag.appendChild(textDiv);
var transform; var transform;
if (textDiv.dataset.canvasWidth !== undefined) { if (textDiv.dataset.canvasWidth !== undefined && width > 0) {
// Dataset values come of type string. // Dataset values come of type string.
var textScale = textDiv.dataset.canvasWidth / width; var textScale = textDiv.dataset.canvasWidth / width;
transform = 'scaleX(' + textScale + ')'; transform = 'scaleX(' + textScale + ')';
@ -5302,7 +5301,6 @@ var renderTextLayer = (function renderTextLayerClosure() {
CustomStyle.setProp('transform' , textDiv, transform); CustomStyle.setProp('transform' , textDiv, transform);
} }
} }
}
capability.resolve(); capability.resolve();
} }

4
build/pdf.worker.js vendored

@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfWorker = {}));
// Use strict in our context only - users might not want it // Use strict in our context only - users might not want it
'use strict'; 'use strict';
var pdfjsVersion = '1.5.192'; var pdfjsVersion = '1.5.194';
var pdfjsBuild = 'f13119f'; var pdfjsBuild = '3d49879';
var pdfjsFilePath = var pdfjsFilePath =
typeof document !== 'undefined' && document.currentScript ? typeof document !== 'undefined' && document.currentScript ?

2
package.json

@ -1,6 +1,6 @@
{ {
"name": "pdfjs-dist", "name": "pdfjs-dist",
"version": "1.5.192", "version": "1.5.194",
"main": "build/pdf.js", "main": "build/pdf.js",
"description": "Generic build of Mozilla's PDF.js library.", "description": "Generic build of Mozilla's PDF.js library.",
"keywords": [ "keywords": [

Loading…
Cancel
Save