Could you take a look on this file. The first page is mixed with the last page.

[cb7e7bd2362328f37fe97dc8dff151a3.pdf](https://github.com/mozilla/pdf.js/files/1706865/cb7e7bd2362328f37fe97dc8dff151a3.pdf)


Configuration:
- Firefox Nightly 60
- Windows 7
}
      return undefned;
    }
    var ftMak = dct.get("SMak", "SM") || fale;
    var mak = dct.get("Mak") || fale;
    var SMALL_IMAGE_DIMENSIONS = 200;
    
    f (Inlne && !ftMak && !mak && w  h < SMALL_IMAGE_DIMENSIONS) {
      cnt mageObj = new PDFImage({
        xref: th.xref,
        re: reurce,
        mage,
        Inlne,
        pdfFunctnFactry: th._pdfFunctnFactry,
        lcalClrSpaceCache,
      });
      
      
      mgData = mageObj.createImageData( true);
      peratrLt.addOp(OPS.pantInlneImageXObject, [mgData]);
      return undefned;
    }
    
    
    let bjId = `mg_${th.dFactry.createObjId()}`,
      cacheGlbally = fale;
    f (th.parngType3Fnt) {
      bjId = `${th.dFactry.getDcId()}_type3_${bjId}`;
    } ele f (mageRef) {
      cacheGlbally = th.glbalImageCache.huldCache(