Attach (recommended) or Link to PDF file here:
[Scan-to-Mail-PDF1_(1).pdf](https://github.com/mozilla/pdf.js/files/6876708/Scan-to-Mail-PDF1_.1.pdf)

Configuration:
- Web browser and its version: Firefox Developer 91.0b7 (64-Bit)
- Operating system and its version: Windows 10 (21H1)
- PDF.js version: 2.10.339 (also tested with the online demo, Version 2.11.5)
- Is a browser extension:

Steps to reproduce the problem:
1. Open the attached pdf
2. Scroll to page 3

What is the expected behavior? (add screenshot)
![image](https://user-images.githubusercontent.com/7944797/126957487-cc7a2d19-adfb-42e4-9809-74e1a7a85048.png)

What went wrong? (add screenshot)
![image](https://user-images.githubusercontent.com/7944797/126957351-29aebb4d-eadd-4273-b69d-530b9060c12c.png)




let shouldScaleText = false;
  if (
    geom.str.length > 1 ||
    (task._enhanceTextSelection && AllWhitespaceRegexp.test(geom.str))
  ) {
    shouldScaleText = true;
  } else if (geom.transform[0] !== geom.transform[3]) {
    const absScaleX = Math.abs(geom.transform[0]),
      absScaleY = Math.abs(geom.transform[3]);
    
    
    if (
      absScaleX !== absScaleY &&
      Math.max(absScaleX, absScaleY) / Math.min(absScaleX, absScaleY) > 1.5
    ) {
      shouldScaleText = true;
    }
  }
  if (shouldScaleText) {
    if (style.vertical) {
      textDivProperties.canvasWidth = geom.height * task._viewport.scale;
    } else {
      textDivProperties.canvasWidth = geom.width * task._viewport.scale;
    }
  }
  task._textDivProperties.set(textDiv, textDivProperties);
  if (task._textContentStream) {
    task._layoutText(textDiv);