Quellcode durchsuchen

PDF.js version 1.6.239 - See mozilla/pdf.js@f209030b9967fdcd335369ce53954df803f021c5

Pdf Bot vor 8 Jahren
Ursprung
Commit
2e2c46f8a0
5 geänderte Dateien mit 8 neuen und 128 gelöschten Zeilen
  1. 1 1
      bower.json
  2. 2 62
      build/pdf.combined.js
  3. 2 2
      build/pdf.js
  4. 2 62
      build/pdf.worker.js
  5. 1 1
      package.json

+ 1 - 1
bower.json

@@ -1,6 +1,6 @@
 {
   "name": "pdfjs-dist",
-  "version": "1.6.237",
+  "version": "1.6.239",
   "main": [
     "build/pdf.js",
     "build/pdf.worker.js"

+ 2 - 62
build/pdf.combined.js

@@ -24,8 +24,8 @@
 }(this, function (exports) {
   // Use strict in our context only - users might not want it
   'use strict';
-  var pdfjsVersion = '1.6.237';
-  var pdfjsBuild = 'c1a34ff';
+  var pdfjsVersion = '1.6.239';
+  var pdfjsBuild = 'f209030';
   var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : null;
   var pdfjsLibs = {};
   (function pdfjsWrapper() {
@@ -43373,65 +43373,6 @@
         0xFFF0,
         0x10000
       ]);
-      //#if !PRODUCTION
-      /**
-       * Used to validate the entries in `ProblematicCharRanges`, and to ensure that
-       * its total number of characters does not exceed the PUA (Private Use Area)
-       * length.
-       * @returns {Object} An object with {number} `numChars`, {number} `puaLength`,
-       *   and {number} `percentage` parameters.
-       */
-      function checkProblematicCharRanges() {
-        function printRange(limits) {
-          return '[' + limits.lower.toString('16').toUpperCase() + ', ' + limits.upper.toString('16').toUpperCase() + ')';
-        }
-        var numRanges = ProblematicCharRanges.length;
-        if (numRanges % 2 !== 0) {
-          throw new Error('Char ranges must contain an even number of elements.');
-        }
-        var previousLimits, numChars = 0;
-        for (var i = 0; i < numRanges; i += 2) {
-          var limits = {
-            lower: ProblematicCharRanges[i],
-            upper: ProblematicCharRanges[i + 1]
-          };
-          if (!isInt(limits.lower) || !isInt(limits.upper)) {
-            throw new Error('Range endpoints must be integers: ' + printRange(limits));
-          }
-          if (limits.lower < 0 || limits.upper < 0) {
-            throw new Error('Range endpoints must be non-negative: ' + printRange(limits));
-          }
-          var range = limits.upper - limits.lower;
-          if (range < 1) {
-            throw new Error('Range must contain at least one element: ' + printRange(limits));
-          }
-          if (previousLimits) {
-            if (limits.lower < previousLimits.lower) {
-              throw new Error('Ranges must be sorted in ascending order: ' + printRange(limits) + ', ' + printRange(previousLimits));
-            }
-            if (limits.lower < previousLimits.upper) {
-              throw new Error('Ranges must not overlap: ' + printRange(limits) + ', ' + printRange(previousLimits));
-            }
-          }
-          previousLimits = {
-            lower: limits.lower,
-            upper: limits.upper
-          };
-          // The current range is OK.
-          numChars += range;
-        }
-        var puaLength = PRIVATE_USE_OFFSET_END + 1 - PRIVATE_USE_OFFSET_START;
-        if (numChars > puaLength) {
-          throw new Error('Total number of chars must not exceed the PUA length.');
-        }
-        return {
-          numChars: numChars,
-          puaLength: puaLength,
-          percentage: 100 * (numChars / puaLength)
-        };
-      }
-      exports.checkProblematicCharRanges = checkProblematicCharRanges;
-      //#endif
       /**
        * 'Font' is the class the outside world should use, it encapsulate all the font
        * decoding logics whatever type it is (assuming the font type is supported).
@@ -46242,7 +46183,6 @@
           SKIP_PRIVATE_USE_RANGE_F000_TO_F01F = true;
         }
       }());
-      exports.SEAC_ANALYSIS_ENABLED = SEAC_ANALYSIS_ENABLED;
       exports.ErrorFont = ErrorFont;
       exports.Font = Font;
       exports.FontFlags = FontFlags;

+ 2 - 2
build/pdf.js

@@ -24,8 +24,8 @@
 }(this, function (exports) {
   // Use strict in our context only - users might not want it
   'use strict';
-  var pdfjsVersion = '1.6.237';
-  var pdfjsBuild = 'c1a34ff';
+  var pdfjsVersion = '1.6.239';
+  var pdfjsBuild = 'f209030';
   var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : null;
   var pdfjsLibs = {};
   (function pdfjsWrapper() {

+ 2 - 62
build/pdf.worker.js

@@ -24,8 +24,8 @@
 }(this, function (exports) {
   // Use strict in our context only - users might not want it
   'use strict';
-  var pdfjsVersion = '1.6.237';
-  var pdfjsBuild = 'c1a34ff';
+  var pdfjsVersion = '1.6.239';
+  var pdfjsBuild = 'f209030';
   var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : null;
   var pdfjsLibs = {};
   (function pdfjsWrapper() {
@@ -39463,65 +39463,6 @@
         0xFFF0,
         0x10000
       ]);
-      //#if !PRODUCTION
-      /**
-       * Used to validate the entries in `ProblematicCharRanges`, and to ensure that
-       * its total number of characters does not exceed the PUA (Private Use Area)
-       * length.
-       * @returns {Object} An object with {number} `numChars`, {number} `puaLength`,
-       *   and {number} `percentage` parameters.
-       */
-      function checkProblematicCharRanges() {
-        function printRange(limits) {
-          return '[' + limits.lower.toString('16').toUpperCase() + ', ' + limits.upper.toString('16').toUpperCase() + ')';
-        }
-        var numRanges = ProblematicCharRanges.length;
-        if (numRanges % 2 !== 0) {
-          throw new Error('Char ranges must contain an even number of elements.');
-        }
-        var previousLimits, numChars = 0;
-        for (var i = 0; i < numRanges; i += 2) {
-          var limits = {
-            lower: ProblematicCharRanges[i],
-            upper: ProblematicCharRanges[i + 1]
-          };
-          if (!isInt(limits.lower) || !isInt(limits.upper)) {
-            throw new Error('Range endpoints must be integers: ' + printRange(limits));
-          }
-          if (limits.lower < 0 || limits.upper < 0) {
-            throw new Error('Range endpoints must be non-negative: ' + printRange(limits));
-          }
-          var range = limits.upper - limits.lower;
-          if (range < 1) {
-            throw new Error('Range must contain at least one element: ' + printRange(limits));
-          }
-          if (previousLimits) {
-            if (limits.lower < previousLimits.lower) {
-              throw new Error('Ranges must be sorted in ascending order: ' + printRange(limits) + ', ' + printRange(previousLimits));
-            }
-            if (limits.lower < previousLimits.upper) {
-              throw new Error('Ranges must not overlap: ' + printRange(limits) + ', ' + printRange(previousLimits));
-            }
-          }
-          previousLimits = {
-            lower: limits.lower,
-            upper: limits.upper
-          };
-          // The current range is OK.
-          numChars += range;
-        }
-        var puaLength = PRIVATE_USE_OFFSET_END + 1 - PRIVATE_USE_OFFSET_START;
-        if (numChars > puaLength) {
-          throw new Error('Total number of chars must not exceed the PUA length.');
-        }
-        return {
-          numChars: numChars,
-          puaLength: puaLength,
-          percentage: 100 * (numChars / puaLength)
-        };
-      }
-      exports.checkProblematicCharRanges = checkProblematicCharRanges;
-      //#endif
       /**
        * 'Font' is the class the outside world should use, it encapsulate all the font
        * decoding logics whatever type it is (assuming the font type is supported).
@@ -42332,7 +42273,6 @@
           SKIP_PRIVATE_USE_RANGE_F000_TO_F01F = true;
         }
       }());
-      exports.SEAC_ANALYSIS_ENABLED = SEAC_ANALYSIS_ENABLED;
       exports.ErrorFont = ErrorFont;
       exports.Font = Font;
       exports.FontFlags = FontFlags;

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "pdfjs-dist",
-  "version": "1.6.237",
+  "version": "1.6.239",
   "main": "build/pdf.js",
   "description": "Generic build of Mozilla's PDF.js library.",
   "keywords": [