Attach (recommended) or Link to PDF file here:
https://s3.eu-west-1.amazonaws.com/scai-dev.website.com/tmp/8ab8b56a-fa91-11eb-8d74-0242ac110004.pdf

Hi,
Please see an incorrect canvas rendering for the following document - page 9 specifically. It reproduces on https://mozilla.github.io/pdf.js/web/viewer.html (tried with Chrome). Other pages in this document look pretty much the same but the problem is on page 9 only.

Original screenshot:
![image](https://user-images.githubusercontent.com/23075641/129066656-7bb2fb56-2b88-4f40-8e67-b95bdeb9e521.png)


PDF JS:

![image](https://user-images.githubusercontent.com/23075641/129066734-56503a5c-413c-49c1-9e1c-470da3a642ed.png)

const width = img.width;
    const height = img.height;
    let widthScale = Math.max(
      Math.hypot(inverseTransform[0], inverseTransform[1]),
      1
    );
    let heightScale = Math.max(
      Math.hypot(inverseTransform[2], inverseTransform[3]),
      1
    );
    let paintWidth = width,
      paintHeight = height;
    let tmpCanvasId = "prescale1";
    let tmpCanvas, tmpCtx;
    while (
      (widthScale > 2 && paintWidth > 1) ||
      (heightScale > 2 && paintHeight > 1)
    ) {
      let newWidth = paintWidth,
        newHeight = paintHeight;
      if (widthScale > 2 && paintWidth > 1) {
        newWidth = Math.ceil(paintWidth / 2);
        widthScale /= paintWidth / newWidth;
      }
      if (heightScale > 2 && paintHeight > 1) {
        newHeight = Math.ceil(paintHeight / 2);
        heightScale /= paintHeight / newHeight;