pdfjs-dist 1.7.282 → 1.7.290

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of pdfjs-dist might be problematic. Click here for more details.

package/bower.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pdfjs-dist",
3
- "version": "1.7.282",
3
+ "version": "1.7.290",
4
4
  "main": [
5
5
  "build/pdf.js",
6
6
  "build/pdf.worker.js"
@@ -13277,6 +13277,7 @@ var Lexer = function LexerClosure() {
13277
13277
  this.nextChar();
13278
13278
  return Cmd.get('}');
13279
13279
  case 0x29:
13280
+ this.nextChar();
13280
13281
  error('Illegal character: ' + ch);
13281
13282
  break;
13282
13283
  }
@@ -20771,8 +20772,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
20771
20772
  }
20772
20773
  };
20773
20774
  }();
20774
- exports.version = '1.7.282';
20775
- exports.build = '466760ef';
20775
+ exports.version = '1.7.290';
20776
+ exports.build = 'b509a3f8';
20776
20777
  exports.getDocument = getDocument;
20777
20778
  exports.PDFDataRangeTransport = PDFDataRangeTransport;
20778
20779
  exports.PDFWorker = PDFWorker;
@@ -23421,8 +23422,8 @@ var CFFParser = function CFFParserClosure() {
23421
23422
  }
23422
23423
  var fontBBox = topDict.getByName('FontBBox');
23423
23424
  if (fontBBox) {
23424
- properties.ascent = fontBBox[3];
23425
- properties.descent = fontBBox[1];
23425
+ properties.ascent = Math.max(fontBBox[3], fontBBox[1]);
23426
+ properties.descent = Math.min(fontBBox[1], fontBBox[3]);
23426
23427
  properties.ascentScaled = true;
23427
23428
  }
23428
23429
  var charset, encoding;
@@ -39527,8 +39528,8 @@ if (!globalScope.PDFJS) {
39527
39528
  globalScope.PDFJS = {};
39528
39529
  }
39529
39530
  var PDFJS = globalScope.PDFJS;
39530
- PDFJS.version = '1.7.282';
39531
- PDFJS.build = '466760ef';
39531
+ PDFJS.version = '1.7.290';
39532
+ PDFJS.build = 'b509a3f8';
39532
39533
  PDFJS.pdfBug = false;
39533
39534
  if (PDFJS.verbosity !== undefined) {
39534
39535
  sharedUtil.setVerbosityLevel(PDFJS.verbosity);
@@ -54709,8 +54710,8 @@ var Type1Parser = function Type1ParserClosure() {
54709
54710
  break;
54710
54711
  case 'FontBBox':
54711
54712
  var fontBBox = this.readNumberArray();
54712
- properties.ascent = fontBBox[3];
54713
- properties.descent = fontBBox[1];
54713
+ properties.ascent = Math.max(fontBBox[3], fontBBox[1]);
54714
+ properties.descent = Math.min(fontBBox[1], fontBBox[3]);
54714
54715
  properties.ascentScaled = true;
54715
54716
  break;
54716
54717
  }
@@ -57282,8 +57283,8 @@ exports.TilingPattern = TilingPattern;
57282
57283
 
57283
57284
  "use strict";
57284
57285
 
57285
- var pdfjsVersion = '1.7.282';
57286
- var pdfjsBuild = '466760ef';
57286
+ var pdfjsVersion = '1.7.290';
57287
+ var pdfjsBuild = 'b509a3f8';
57287
57288
  var pdfjsSharedUtil = __w_pdfjs_require__(0);
57288
57289
  var pdfjsDisplayGlobal = __w_pdfjs_require__(25);
57289
57290
  var pdfjsDisplayAPI = __w_pdfjs_require__(10);
package/build/pdf.js CHANGED
@@ -4485,8 +4485,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
4485
4485
  }
4486
4486
  };
4487
4487
  }();
4488
- exports.version = '1.7.282';
4489
- exports.build = '466760ef';
4488
+ exports.version = '1.7.290';
4489
+ exports.build = 'b509a3f8';
4490
4490
  exports.getDocument = getDocument;
4491
4491
  exports.PDFDataRangeTransport = PDFDataRangeTransport;
4492
4492
  exports.PDFWorker = PDFWorker;
@@ -6502,8 +6502,8 @@ if (!globalScope.PDFJS) {
6502
6502
  globalScope.PDFJS = {};
6503
6503
  }
6504
6504
  var PDFJS = globalScope.PDFJS;
6505
- PDFJS.version = '1.7.282';
6506
- PDFJS.build = '466760ef';
6505
+ PDFJS.version = '1.7.290';
6506
+ PDFJS.build = 'b509a3f8';
6507
6507
  PDFJS.pdfBug = false;
6508
6508
  if (PDFJS.verbosity !== undefined) {
6509
6509
  sharedUtil.setVerbosityLevel(PDFJS.verbosity);
@@ -9185,8 +9185,8 @@ exports.TilingPattern = TilingPattern;
9185
9185
 
9186
9186
  "use strict";
9187
9187
 
9188
- var pdfjsVersion = '1.7.282';
9189
- var pdfjsBuild = '466760ef';
9188
+ var pdfjsVersion = '1.7.290';
9189
+ var pdfjsBuild = 'b509a3f8';
9190
9190
  var pdfjsSharedUtil = __w_pdfjs_require__(0);
9191
9191
  var pdfjsDisplayGlobal = __w_pdfjs_require__(8);
9192
9192
  var pdfjsDisplayAPI = __w_pdfjs_require__(3);