When I am trying to load this pdf http://merlin_test.s3.amazonaws.com/myPdf.pdf, it's unable to render all the contents. There is a blue background which is not visible and some of the texts are not visible as well as the color is not proper. Can someone please help

const p0 = p;
    let type = points[p];
    do {
      const step = steps[type];
      do {
        p += step;
      } while (!points[p]);
      const pp = points[p];
      if (pp !== 5 && pp !== 10) {
        
        type = pp;
        
        points[p] = 0;
      } else {
        
        
        type = pp & ((0x33 * type) >> 4);
        
        points[p] &= (type >> 2) | (type << 2);
      }
      coords.push(p % width1, (p / width1) | 0);
      if (!points[p]) {
        --count;
      }
    } while (p0 !== p);
    outlines.push(coords);
    --i;
  }
  const drawOutline = function (c) {
    c.save();