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)




const bounds = task._bounds;
  const viewport = task._viewport;
  const expanded = expandBounds(viewport.width, viewport.height, bounds);
  for (let i = 0; i < expanded.length; i++) {
    const div = bounds[i].div;
    const divProperties = task._textDivProperties.get(div);
    if (divProperties.angle === 0) {
      divProperties.paddingLeft = bounds[i].left - expanded[i].left;
      divProperties.paddingTop = bounds[i].top - expanded[i].top;
      divProperties.paddingRight = expanded[i].right - bounds[i].right;
      divProperties.paddingBottom = expanded[i].bottom - bounds[i].bottom;
      task._textDivProperties.set(div, divProperties);
      continue;
    }
    
    
    const e = expanded[i],
      b = bounds[i];
    const m = b.m,
      c = m[0],
      s = m[1];
    
    const points = [[0, 0], [0, b.size[1]], [b.size[0], 0], b.size];
    const ts = new Float64Array(64);