|  | @@ -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.413';
 |  | 
 | 
											
												
													
														|  | -var pdfjsBuild = '6bb95e3';
 |  | 
 | 
											
												
													
														|  | 
 |  | +var pdfjsVersion = '1.5.415';
 | 
											
												
													
														|  | 
 |  | +var pdfjsBuild = '8522625';
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |    var pdfjsFilePath =
 |  |    var pdfjsFilePath =
 | 
											
												
													
														|  |      typeof document !== 'undefined' && document.currentScript ?
 |  |      typeof document !== 'undefined' && document.currentScript ?
 | 
											
										
											
												
													
														|  | @@ -25112,22 +25112,23 @@ var renderTextLayer = (function renderTextLayerClosure() {
 | 
											
												
													
														|  |        var width = ctx.measureText(textDiv.textContent).width;
 |  |        var width = ctx.measureText(textDiv.textContent).width;
 | 
											
												
													
														|  |        textDiv.dataset.originalWidth = width;
 |  |        textDiv.dataset.originalWidth = width;
 | 
											
												
													
														|  |        textLayerFrag.appendChild(textDiv);
 |  |        textLayerFrag.appendChild(textDiv);
 | 
											
												
													
														|  | -       var transform;
 |  | 
 | 
											
												
													
														|  | -       if (textDiv.dataset.canvasWidth !== undefined && width > 0) {
 |  | 
 | 
											
												
													
														|  | -        //  Dataset values come of type string.
 |  | 
 | 
											
												
													
														|  | -         var textScale = textDiv.dataset.canvasWidth / width;
 |  | 
 | 
											
												
													
														|  | -         transform = 'scaleX(' + textScale + ')';
 |  | 
 | 
											
												
													
														|  | -       } else {
 |  | 
 | 
											
												
													
														|  | -         transform = '';
 |  | 
 | 
											
												
													
														|  | -       }
 |  | 
 | 
											
												
													
														|  | -       var rotation = textDiv.dataset.angle;
 |  | 
 | 
											
												
													
														|  | -       if (rotation) {
 |  | 
 | 
											
												
													
														|  | -         transform = 'rotate(' + rotation + 'deg) ' + transform;
 |  | 
 | 
											
												
													
														|  | -       }
 |  | 
 | 
											
												
													
														|  | -       if (transform) {
 |  | 
 | 
											
												
													
														|  | -         textDiv.dataset.originalTransform = transform;
 |  | 
 | 
											
												
													
														|  | -         CustomStyle.setProp('transform' , textDiv, transform);
 |  | 
 | 
											
												
													
														|  | -       }
 |  | 
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +      var transform;
 | 
											
												
													
														|  | 
 |  | +      if (textDiv.dataset.canvasWidth !== undefined && width > 0) {
 | 
											
												
													
														|  | 
 |  | +        // Dataset values are of type string.
 | 
											
												
													
														|  | 
 |  | +        var textScale = textDiv.dataset.canvasWidth / width;
 | 
											
												
													
														|  | 
 |  | +        transform = 'scaleX(' + textScale + ')';
 | 
											
												
													
														|  | 
 |  | +      } else {
 | 
											
												
													
														|  | 
 |  | +        transform = '';
 | 
											
												
													
														|  | 
 |  | +      }
 | 
											
												
													
														|  | 
 |  | +      var rotation = textDiv.dataset.angle;
 | 
											
												
													
														|  | 
 |  | +      if (rotation) {
 | 
											
												
													
														|  | 
 |  | +        transform = 'rotate(' + rotation + 'deg) ' + transform;
 | 
											
												
													
														|  | 
 |  | +      }
 | 
											
												
													
														|  | 
 |  | +      if (transform) {
 | 
											
												
													
														|  | 
 |  | +        textDiv.dataset.originalTransform = transform;
 | 
											
												
													
														|  | 
 |  | +        CustomStyle.setProp('transform' , textDiv, transform);
 | 
											
												
													
														|  | 
 |  | +      }
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  |      task._renderingDone = true;
 |  |      task._renderingDone = true;
 | 
											
												
													
														|  |      capability.resolve();
 |  |      capability.resolve();
 | 
											
										
											
												
													
														|  | @@ -25175,13 +25176,13 @@ var renderTextLayer = (function renderTextLayerClosure() {
 | 
											
												
													
														|  |        });
 |  |        });
 | 
											
												
													
														|  |        var findPositiveMin = function (ts, offset, count) {
 |  |        var findPositiveMin = function (ts, offset, count) {
 | 
											
												
													
														|  |          var result = 0;
 |  |          var result = 0;
 | 
											
												
													
														|  | -          for (var i = 0; i < count; i++) {
 |  | 
 | 
											
												
													
														|  | -            var t = ts[offset++];
 |  | 
 | 
											
												
													
														|  | -            if (t > 0) {
 |  | 
 | 
											
												
													
														|  | -              result = result ? Math.min(t, result) : t;
 |  | 
 | 
											
												
													
														|  | -            }
 |  | 
 | 
											
												
													
														|  | 
 |  | +        for (var i = 0; i < count; i++) {
 | 
											
												
													
														|  | 
 |  | +          var t = ts[offset++];
 | 
											
												
													
														|  | 
 |  | +          if (t > 0) {
 | 
											
												
													
														|  | 
 |  | +            result = result ? Math.min(t, result) : t;
 | 
											
												
													
														|  |            }
 |  |            }
 | 
											
												
													
														|  | -          return result;
 |  | 
 | 
											
												
													
														|  | 
 |  | +        }
 | 
											
												
													
														|  | 
 |  | +        return result;
 | 
											
												
													
														|  |        };
 |  |        };
 | 
											
												
													
														|  |        // Not based on math, but to simplify calculations, using cos and sin
 |  |        // Not based on math, but to simplify calculations, using cos and sin
 | 
											
												
													
														|  |        // absolute values to not exceed the box (it can but insignificantly).
 |  |        // absolute values to not exceed the box (it can but insignificantly).
 | 
											
										
											
												
													
														|  | @@ -25440,10 +25441,11 @@ var renderTextLayer = (function renderTextLayerClosure() {
 | 
											
												
													
														|  |        var styles = this._textContent.styles;
 |  |        var styles = this._textContent.styles;
 | 
											
												
													
														|  |        var textDivs = this._textDivs;
 |  |        var textDivs = this._textDivs;
 | 
											
												
													
														|  |        var viewport = this._viewport;
 |  |        var viewport = this._viewport;
 | 
											
												
													
														|  | 
 |  | +      var bounds = this._bounds;
 | 
											
												
													
														|  |        var enhanceTextSelection = this._enhanceTextSelection;
 |  |        var enhanceTextSelection = this._enhanceTextSelection;
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |        for (var i = 0, len = textItems.length; i < len; i++) {
 |  |        for (var i = 0, len = textItems.length; i < len; i++) {
 | 
											
												
													
														|  | -        appendText(textDivs, viewport, textItems[i], styles, this._bounds,
 |  | 
 | 
											
												
													
														|  | 
 |  | +        appendText(textDivs, viewport, textItems[i], styles, bounds,
 | 
											
												
													
														|  |                     enhanceTextSelection);
 |  |                     enhanceTextSelection);
 | 
											
												
													
														|  |        }
 |  |        }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
										
											
												
													
														|  | @@ -25473,7 +25475,7 @@ var renderTextLayer = (function renderTextLayerClosure() {
 | 
											
												
													
														|  |            var transform;
 |  |            var transform;
 | 
											
												
													
														|  |            var width = div.dataset.originalWidth;
 |  |            var width = div.dataset.originalWidth;
 | 
											
												
													
														|  |            if (div.dataset.canvasWidth !== undefined && width > 0) {
 |  |            if (div.dataset.canvasWidth !== undefined && width > 0) {
 | 
											
												
													
														|  | -            // Dataset values come of type string.
 |  | 
 | 
											
												
													
														|  | 
 |  | +            // Dataset values are of type string.
 | 
											
												
													
														|  |              var textScale = div.dataset.canvasWidth / width;
 |  |              var textScale = div.dataset.canvasWidth / width;
 | 
											
												
													
														|  |              transform = 'scaleX(' + textScale + ')';
 |  |              transform = 'scaleX(' + textScale + ')';
 | 
											
												
													
														|  |            } else {
 |  |            } else {
 |