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

Configuration:
- Web browser and its version: FF 88.0.1
- Operating system and its version: W10.0.19042.985
- PDF.js version: https://mozilla.github.io/pdf.js/web/viewer.html

Steps to reproduce the problem:
1. open file to display

What is the expected behavior? (add screenshot)
![grafik](https://user-images.githubusercontent.com/6665575/118114800-5e407800-b3e8-11eb-860f-019f48a8eabf.png)

What went wrong? (add screenshot)
![grafik](https://user-images.githubusercontent.com/6665575/118114841-6c8e9400-b3e8-11eb-8252-1517e5d76475.png)

(memo for me: when fixed, check the files in https://issues.apache.org/jira/browse/PDFBOX-1958 )

let xa, car, cag, cab;
  let xb, cbr, cbg, cbb;
  for (let y = minY; y <= maxY; y++) {
    if (y < y2) {
      let k;
      if (y < y1) {
        k = 0;
      } else if (y1 === y2) {
        k = 1;
      } else {
        k = (y1 - y) / (y1 - y2);
      }
      xa = x1 - (x1 - x2) * k;
      car = c1r - (c1r - c2r) * k;
      cag = c1g - (c1g - c2g) * k;
      cab = c1b - (c1b - c2b) * k;
    } else {
      let k;
      if (y > y3) {
        k = 1;
      } else if (y2 === y3) {
        k = 0;
      } else {
        k = (y2 - y) / (y2 - y3);
      }
      xa = x2 - (x2 - x3) * k;
      car = c2r - (c2r - c3r) * k;
      cag = c2g - (c2g - c3g) * k;
      cab = c2b - (c2b - c3b) * k;
    }