Attach (recommended) or Link to PDF file here:
https://www.nta.go.jp/taxes/tetsuzuki/shinsei/annai/joyaku/annai/pdf2/250.pdf

Configuration:
- Web browser and its version: Firefox 81.0a1
- Operating system and its version: Debian 5.6.7-1
- PDF.js version: latest in Firefox nightly
- Is a browser extension: No

Steps to reproduce the problem:
1. Open the pdf and paste the following text "本 店 又 は 主 た る 事 務 所 の 所 在 地" in "Full name" and in "Domicile and residence" textfields
2. Print or Save the pdf 

What is the expected behavior? (add screenshot)
![image](https://user-images.githubusercontent.com/5641725/91207547-30f05480-e709-11ea-9abd-2af5d970dc46.png)

What went wrong? (add screenshot)
![image](https://user-images.githubusercontent.com/5641725/91207663-69902e00-e709-11ea-8a1d-1ddd30cf0621.png)

Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension):

var ranges = getRanges(glyphs, numGlyphs);
    var numTables = ranges[ranges.length - 1][1] > 0xffff ? 2 : 1;
    var cmap =
      "\x00\x00" + 
      string16(numTables) + 
      "\x00\x03" + 
      "\x00\x01" + 
      string32(4 + numTables * 8); 
    var i, ii, j, jj;
    for (i = ranges.length - 1; i >= 0; --i) {
      if (ranges[i][0] <= 0xffff) {
        break;
      }
    }
    var bmpLength = i + 1;
    if (ranges[i][0] < 0xffff && ranges[i][1] === 0xffff) {
      ranges[i][1] = 0xfffe;
    }
    var trailingRangesCount = ranges[i][1] < 0xffff ? 1 : 0;
    var segCount = bmpLength + trailingRangesCount;
    var searchParams = OpenTypeFileBuilder.getSearchParams(segCount, 2);
    
    var startCount = "";
    var endCount = "";
    var idDeltas = "";
    var idRangeOffsets = "";