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 (this.current.resumeSMaskCtx) {
        this.resumeSMaskGroup();
      }
      
      
      if (
        this.current.activeSMask !== null &&
        (this.stateStack.length === 0 ||
          this.stateStack[this.stateStack.length - 1].activeSMask !==
            this.current.activeSMask)
      ) {
        this.endSMaskGroup();
      }
      if (this.stateStack.length !== 0) {
        this.current = this.stateStack.pop();
        this.ctx.restore();
        
        this.pendingClip = null;
        this._cachedGetSinglePixelWidth = null;
      } else {
        
        this.current.activeSMask = null;
      }
    }
    transform(a, b, c, d, e, f) {