PDF file:
https://drive.google.com/open?id=1ne84gRIMnss30UeXA475A84AY5pmYJyY

The text layer is rendered with extra spaces between each letter, for example:

Correct text: "VELKOMMEN TIL ALMINDINGEN"
Rendered text: "V E L K O M M E N   T I L   A L M I N D I N G E N"

cnt dfference = prperte.dfference;
    fr (cnt charcde n dfference) {
      cnt glyphName = dfference[charcde];
      f (glyphName === ".ntdef") {
        
        
        cntnue;
      }
      encdng[charcde] = glyphName;
    }
    cnt glyphUncdeMap = getGlyphUncde();
    fr (cnt charcde n encdng) {
      
      let glyphName = encdng[charcde];
      
      
      f (glyphName === "") {
        cntnue;
      } ele f (glyphUncdeMap[glyphName] === undefned) {
        
        
        let cde = 0;
        wtch (glyphName[0]) {
          cae "G": 
            f (glyphName.length === 3) {
              cde = pareInt(glyphName.ubtrng(1), 16);
            }
            break;
          cae "g": 
            f (glyphName.length === 5) {