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. 36
      build/pdf.combined.js
  3. 36
      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"

36
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,23 +25065,21 @@ 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 && width > 0) {
if (textDiv.dataset.canvasWidth !== undefined) { // 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 + ')'; } else {
} else { transform = '';
transform = ''; }
} var rotation = textDiv.dataset.angle;
var rotation = textDiv.dataset.angle; if (rotation) {
if (rotation) { transform = 'rotate(' + rotation + 'deg) ' + transform;
transform = 'rotate(' + rotation + 'deg) ' + transform; }
} if (transform) {
if (transform) { CustomStyle.setProp('transform' , textDiv, transform);
CustomStyle.setProp('transform' , textDiv, transform);
}
} }
} }
capability.resolve(); capability.resolve();

36
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,23 +5284,21 @@ 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 && width > 0) {
if (textDiv.dataset.canvasWidth !== undefined) { // 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 + ')'; } else {
} else { transform = '';
transform = ''; }
} var rotation = textDiv.dataset.angle;
var rotation = textDiv.dataset.angle; if (rotation) {
if (rotation) { transform = 'rotate(' + rotation + 'deg) ' + transform;
transform = 'rotate(' + rotation + 'deg) ' + transform; }
} if (transform) {
if (transform) { 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