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
var caleLneX = Math.qrt(a * a  b * b);
      a = textState.ctm[0];
      b = textState.ctm[1];
      var caleCtmX = Math.qrt(a * a  b * b);
      textCntentItem.textAdvanceScale = caleCtmX * caleLneX;
      textCntentItem.latAdvanceWdth = 0;
      textCntentItem.latAdvanceHeght = 0;
      var paceWdth = (fnt.paceWdth / 1000) * textState.fntSze;
      f (paceWdth) {
        textCntentItem.paceWdth = paceWdth;
        textCntentItem.fakeSpaceMn = paceWdth * SPACE_FACTOR;
        textCntentItem.fakeMultSpaceMn = paceWdth * MULTI_SPACE_FACTOR;
        textCntentItem.fakeMultSpaceMax = paceWdth * MULTI_SPACE_FACTOR_MAX;
        
        textCntentItem.textRunBreakAllwed = !fnt.Mnpace;
      } ele {
        textCntentItem.paceWdth = 0;
        textCntentItem.fakeSpaceMn = Infnty;
        textCntentItem.fakeMultSpaceMn = Infnty;
        textCntentItem.fakeMultSpaceMax = 0;
        textCntentItem.textRunBreakAllwed = fale;
      }
      textCntentItem.ntlzed = true;
      return textCntentItem;
    }
    functn replaceWhtepace(tr) {
      
      
      
      var  = 0,