
I am using this test link [https://mozilla.github.io/pdf.js/web/viewer.html](https://mozilla.github.io/pdf.js/web/viewer.html)

The test pdf [pdfjs_lost_image_test.pdf](https://github.com/mozilla/pdf.js/files/3840182/pdfjs_lost_image_test.pdf)

![pdfjs_2](https://user-images.githubusercontent.com/17464719/68747444-84d7f400-0635-11ea-8b36-d4902b4a359b.png)

The image is lost when previewing with pdfjs.

![pdfjs_1](https://user-images.githubusercontent.com/17464719/68747462-8d302f00-0635-11ea-8d76-347e00081066.png)

A temporary solution is to convert the file itself, convert this pdf to jpg first, and then convert this jpg to pdf.

Is it possible that the font is Chinese traditional? and how can I solve it?

Thanks a million!

for (const id in this.cache) {
      const canvasEntry = this.cache[id];
      this.canvasFactory.destroy(canvasEntry);
      delete this.cache[id];
    }
  }
}
function compileType3Glyph(imgData) {
  const POINT_TO_PROCESS_LIMIT = 1000;
  const POINT_TYPES = new Uint8Array([
    0, 2, 4, 0, 1, 0, 5, 4, 8, 10, 0, 8, 0, 2, 1, 0,
  ]);
  const width = imgData.width,
    height = imgData.height,
    width1 = width + 1;
  let i, ii, j, j0;
  const points = new Uint8Array(width1 * (height + 1));
  
  const lineSize = (width + 7) & ~7,
    data0 = imgData.data;
  const data = new Uint8Array(lineSize * height);
  let pos = 0;
  for (i = 0, ii = data0.length; i < ii; i++) {
    const elem = data0[i];
    let mask = 128;
    while (mask > 0) {
      data[pos++] = elem & mask ? 0 : 255;
      mask >>= 1;
    }
  }