extensions/pdfViewer/pdf/build/pdf.worker.js
function readToken(data, offset) {
        var token = '', ch = data[offset];
        while (ch !== 13 && ch !== 10) {
          if (++offset >= data.length) {
            break;
          }
          token += String.fromCharCode(ch);
          ch = data[offset];
        }
        return token;
      }
function readToken(data, offset) {
        var token = '', ch = data[offset];
        while (ch !== 13 && ch !== 10) {
          if (++offset >= data.length) {
            break;
          }
          token += String.fromCharCode(ch);
          ch = data[offset];
        }
        return token;
      }
function readToken ( data , offset ) { var token = '' , ch = data [ offset ] ; while ( ch !== 13 && ch !== 10 ) { if ( ++ offset >= data . length ) { break ; } token += String . fromCharCode ( ch ) ; ch = data [ offset ] ; } return token ; }
Simple scan through the PDF content to find objects, trailers and XRef streams.
Simple scan through the PDF content to find objects trailers and XRef streams .