Attach (recommended) or Link to PDF file here:
[imm5710f(1).pdf](https://github.com/mozilla/pdf.js/files/6924738/imm5710f.1.pdf)

Configuration:
- Web browser and its version: Firefox nightly
- Operating system and its version: Debian

Steps to reproduce the problem:
1. Open the pdf on page 3 
2. See the 2 fields after `DÉTAILS DU TRAVAIL PRÉVU AU CANADA`

What went wrong? (add screenshot)
![image](https://user-images.githubusercontent.com/5641725/128031365-84b17d62-f805-43d1-9d05-e2b535efa3ef.png)

[centerX, centerY] = [0, h];
      break;
    case "bottomRight":
      [centerX, centerY] = [w, h];
      break;
    case "middleCenter":
      [centerX, centerY] = [w / 2, h / 2];
      break;
    case "middleLeft":
      [centerX, centerY] = [0, h / 2];
      break;
    case "middleRight":
      [centerX, centerY] = [w, h / 2];
      break;
    case "topCenter":
      [centerX, centerY] = [w / 2, 0];
      break;
    case "topRight":
      [centerX, centerY] = [w, 0];
      break;
  }
  let x, y;
  switch (node.rotate || 0) {
    case 0:
      [x, y] = [-centerX, -centerY];
      break;
    case 90:
      [x, y] = [-centerY, centerX];
      [w, h] = [h, -w];
      break;