Attach (recommended) or Link to PDF file here:
[Uploading index.html.pdf…]()

The original image used to create the PDF is here:
![1](https://user-images.githubusercontent.com/66191275/104105670-c22f2480-52c0-11eb-9d4f-9c63a853c6c7.jpeg)

Configuration:
I tried to display the above PDF using the viewer here: https://mozilla.github.io/pdf.js/web/viewer.html
const maxPos = data.length - 1;
    var newPos = startPos < currentPos ? startPos : currentPos;
    if (currentPos >= maxPos) {
      return null; 
    }
    var currentMarker = readUint16(data, currentPos);
    if (currentMarker >= 0xffc0 && currentMarker <= 0xfffe) {
      return {
        invalid: null,
        marker: currentMarker,
        offset: currentPos,
      };
    }
    var newMarker = readUint16(data, newPos);
    while (!(newMarker >= 0xffc0 && newMarker <= 0xfffe)) {
      if (++newPos >= maxPos) {
        return null; 
      }
      newMarker = readUint16(data, newPos);
    }
    return {
      invalid: currentMarker.toString(16),
      marker: newMarker,
      offset: newPos,
    };
  }
  JpegImage.prototype = {
    parse(data, { dnlScanLines = null } = {}) {