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