PDF.js displays blurry plots in PDF documents, e.g.

http://arxiv.org/pdf/1202.5344v1.pdf

When viewed in Chrome or Adobe Acrobat all the plots show sharp-edged squares. When viewed in Preview or PDF.js, all the squares show as blurry pixelated blobs.

}
      if (glyph?.compiled) {
        glyph.compiled(ctx);
        return;
      }
      const maskCanvas = this.cachedCanvases.getCanvas(
        "maskCanvas",
        width,
        height
      );
      const maskCtx = maskCanvas.context;
      maskCtx.save();
      putBinaryImageMask(maskCtx, img);
      maskCtx.globalCompositeOperation = "source-in";
      let patternTransform = null;
      if (isPatternFill) {
        patternTransform = getAdjustmentTransformation(
          ctx.mozCurrentTransform,
          width,
          height
        );
      }
      maskCtx.fillStyle = isPatternFill
        ? fillColor.getPattern(maskCtx, this, false, patternTransform)
        : fillColor;
      maskCtx.fillRect(0, 0, width, height);
      maskCtx.restore();
      this.paintInlineImageXObject(maskCanvas.canvas);
    }
    paintImageMaskXObjectRepeat(