소스 검색

PDF.js version 1.8.284 - See mozilla/pdf.js@06c93d8fbd597d6bf61859498899c8a51f20b674

pdfjsbot 8 년 전
부모
커밋
b635b01e43
14개의 변경된 파일63개의 추가작업 그리고 42개의 파일을 삭제
  1. 1 1
      bower.json
  2. 19 12
      build/pdf.combined.js
  3. 6 6
      build/pdf.js
  4. 0 0
      build/pdf.min.js
  5. 15 8
      build/pdf.worker.js
  6. 0 0
      build/pdf.worker.min.js
  7. 2 0
      lib/core/cmap.js
  8. 3 2
      lib/core/document.js
  9. 8 4
      lib/core/evaluator.js
  10. 2 2
      lib/display/api.js
  11. 2 2
      lib/display/global.js
  12. 2 2
      lib/pdf.js
  13. 2 2
      lib/pdf.worker.js
  14. 1 1
      package.json

+ 1 - 1
bower.json

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

+ 19 - 12
build/pdf.combined.js

@@ -12726,8 +12726,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
 }();
 var version, build;
 {
-  exports.version = version = '1.8.282';
-  exports.build = build = '5fb779d2';
+  exports.version = version = '1.8.284';
+  exports.build = build = '06c93d8f';
 }
 exports.getDocument = getDocument;
 exports.PDFDataRangeTransport = PDFDataRangeTransport;
@@ -18149,6 +18149,8 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
     return (cs.numComps === 1 || cs.numComps === 3) && cs.isDefaultDecode(dict.getArray('Decode', 'D'));
   };
   function PartialEvaluator(pdfManager, xref, handler, pageIndex, idFactory, fontCache, builtInCMapCache, options) {
+    var _this = this;
+
     this.pdfManager = pdfManager;
     this.xref = xref;
     this.handler = handler;
@@ -18158,13 +18160,13 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
     this.builtInCMapCache = builtInCMapCache;
     this.options = options || DefaultPartialEvaluatorOptions;
     this.fetchBuiltInCMap = function (name) {
-      var cachedCMap = builtInCMapCache[name];
+      var cachedCMap = _this.builtInCMapCache[name];
       if (cachedCMap) {
         return Promise.resolve(cachedCMap);
       }
       return handler.sendWithPromise('FetchBuiltInCMap', { name: name }).then(function (data) {
         if (data.compressionType !== CMapCompressionType.NONE) {
-          builtInCMapCache[name] = data;
+          _this.builtInCMapCache[name] = data;
         }
         return data;
       });
@@ -18234,12 +18236,14 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
   var TILING_PATTERN = 1,
       SHADING_PATTERN = 2;
   PartialEvaluator.prototype = {
-    clone: function clone(newOptions) {
-      newOptions = newOptions || DefaultPartialEvaluatorOptions;
+    clone: function clone() {
+      var newOptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : DefaultPartialEvaluatorOptions;
+
       var newEvaluator = Object.create(this);
       newEvaluator.options = newOptions;
       return newEvaluator;
     },
+
     hasBlendModes: function PartialEvaluator_hasBlendModes(resources) {
       if (!isDict(resources)) {
         return false;
@@ -28020,8 +28024,8 @@ if (!_util.globalScope.PDFJS) {
 }
 var PDFJS = _util.globalScope.PDFJS;
 {
-  PDFJS.version = '1.8.282';
-  PDFJS.build = '5fb779d2';
+  PDFJS.version = '1.8.284';
+  PDFJS.build = '06c93d8f';
 }
 PDFJS.pdfBug = false;
 if (PDFJS.verbosity !== undefined) {
@@ -29144,6 +29148,7 @@ var CMap = function CMapClosure() {
       out.charcode = 0;
       out.length = 1;
     },
+
     get length() {
       return this._map.length;
     },
@@ -29206,6 +29211,7 @@ var IdentityCMap = function IdentityCMapClosure() {
       }
       return map;
     },
+
     readCharCode: CMap.prototype.readCharCode,
     get length() {
       return 0x10000;
@@ -30160,11 +30166,12 @@ var PDFDocument = function PDFDocumentClosure() {
       this.xref.setStartXRef(startXRef);
     },
     setup: function PDFDocument_setup(recoveryMode) {
+      var _this = this;
+
       this.xref.parse(recoveryMode);
-      var self = this;
       var pageFactory = {
         createPage: function createPage(pageIndex, dict, ref, fontCache, builtInCMapCache) {
-          return new Page(self.pdfManager, self.xref, pageIndex, dict, ref, fontCache, builtInCMapCache);
+          return new Page(_this.pdfManager, _this.xref, pageIndex, dict, ref, fontCache, builtInCMapCache);
         }
       };
       this.catalog = new Catalog(this.pdfManager, this.xref, pageFactory);
@@ -43543,8 +43550,8 @@ exports.TilingPattern = TilingPattern;
 "use strict";
 
 
-var pdfjsVersion = '1.8.282';
-var pdfjsBuild = '5fb779d2';
+var pdfjsVersion = '1.8.284';
+var pdfjsBuild = '06c93d8f';
 var pdfjsSharedUtil = __w_pdfjs_require__(0);
 var pdfjsDisplayGlobal = __w_pdfjs_require__(26);
 var pdfjsDisplayAPI = __w_pdfjs_require__(10);

+ 6 - 6
build/pdf.js

@@ -3435,8 +3435,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
 }();
 var version, build;
 {
-  exports.version = version = '1.8.282';
-  exports.build = build = '5fb779d2';
+  exports.version = version = '1.8.284';
+  exports.build = build = '06c93d8f';
 }
 exports.getDocument = getDocument;
 exports.PDFDataRangeTransport = PDFDataRangeTransport;
@@ -5403,8 +5403,8 @@ if (!_util.globalScope.PDFJS) {
 }
 var PDFJS = _util.globalScope.PDFJS;
 {
-  PDFJS.version = '1.8.282';
-  PDFJS.build = '5fb779d2';
+  PDFJS.version = '1.8.284';
+  PDFJS.build = '06c93d8f';
 }
 PDFJS.pdfBug = false;
 if (PDFJS.verbosity !== undefined) {
@@ -7898,8 +7898,8 @@ exports.TilingPattern = TilingPattern;
 "use strict";
 
 
-var pdfjsVersion = '1.8.282';
-var pdfjsBuild = '5fb779d2';
+var pdfjsVersion = '1.8.284';
+var pdfjsBuild = '06c93d8f';
 var pdfjsSharedUtil = __w_pdfjs_require__(0);
 var pdfjsDisplayGlobal = __w_pdfjs_require__(9);
 var pdfjsDisplayAPI = __w_pdfjs_require__(3);

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
build/pdf.min.js


+ 15 - 8
build/pdf.worker.js

@@ -15212,6 +15212,8 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
     return (cs.numComps === 1 || cs.numComps === 3) && cs.isDefaultDecode(dict.getArray('Decode', 'D'));
   };
   function PartialEvaluator(pdfManager, xref, handler, pageIndex, idFactory, fontCache, builtInCMapCache, options) {
+    var _this = this;
+
     this.pdfManager = pdfManager;
     this.xref = xref;
     this.handler = handler;
@@ -15221,13 +15223,13 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
     this.builtInCMapCache = builtInCMapCache;
     this.options = options || DefaultPartialEvaluatorOptions;
     this.fetchBuiltInCMap = function (name) {
-      var cachedCMap = builtInCMapCache[name];
+      var cachedCMap = _this.builtInCMapCache[name];
       if (cachedCMap) {
         return Promise.resolve(cachedCMap);
       }
       return handler.sendWithPromise('FetchBuiltInCMap', { name: name }).then(function (data) {
         if (data.compressionType !== CMapCompressionType.NONE) {
-          builtInCMapCache[name] = data;
+          _this.builtInCMapCache[name] = data;
         }
         return data;
       });
@@ -15297,12 +15299,14 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
   var TILING_PATTERN = 1,
       SHADING_PATTERN = 2;
   PartialEvaluator.prototype = {
-    clone: function clone(newOptions) {
-      newOptions = newOptions || DefaultPartialEvaluatorOptions;
+    clone: function clone() {
+      var newOptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : DefaultPartialEvaluatorOptions;
+
       var newEvaluator = Object.create(this);
       newEvaluator.options = newOptions;
       return newEvaluator;
     },
+
     hasBlendModes: function PartialEvaluator_hasBlendModes(resources) {
       if (!isDict(resources)) {
         return false;
@@ -25433,6 +25437,7 @@ var CMap = function CMapClosure() {
       out.charcode = 0;
       out.length = 1;
     },
+
     get length() {
       return this._map.length;
     },
@@ -25495,6 +25500,7 @@ var IdentityCMap = function IdentityCMapClosure() {
       }
       return map;
     },
+
     readCharCode: CMap.prototype.readCharCode,
     get length() {
       return 0x10000;
@@ -26449,11 +26455,12 @@ var PDFDocument = function PDFDocumentClosure() {
       this.xref.setStartXRef(startXRef);
     },
     setup: function PDFDocument_setup(recoveryMode) {
+      var _this = this;
+
       this.xref.parse(recoveryMode);
-      var self = this;
       var pageFactory = {
         createPage: function createPage(pageIndex, dict, ref, fontCache, builtInCMapCache) {
-          return new Page(self.pdfManager, self.xref, pageIndex, dict, ref, fontCache, builtInCMapCache);
+          return new Page(_this.pdfManager, _this.xref, pageIndex, dict, ref, fontCache, builtInCMapCache);
         }
       };
       this.catalog = new Catalog(this.pdfManager, this.xref, pageFactory);
@@ -36956,8 +36963,8 @@ exports.Type1Parser = Type1Parser;
 "use strict";
 
 
-var pdfjsVersion = '1.8.282';
-var pdfjsBuild = '5fb779d2';
+var pdfjsVersion = '1.8.284';
+var pdfjsBuild = '06c93d8f';
 var pdfjsCoreWorker = __w_pdfjs_require__(8);
 {
   __w_pdfjs_require__(19);

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
build/pdf.worker.min.js


+ 2 - 0
lib/core/cmap.js

@@ -119,6 +119,7 @@ var CMap = function CMapClosure() {
       out.charcode = 0;
       out.length = 1;
     },
+
     get length() {
       return this._map.length;
     },
@@ -181,6 +182,7 @@ var IdentityCMap = function IdentityCMapClosure() {
       }
       return map;
     },
+
     readCharCode: CMap.prototype.readCharCode,
     get length() {
       return 0x10000;

+ 3 - 2
lib/core/document.js

@@ -429,11 +429,12 @@ var PDFDocument = function PDFDocumentClosure() {
       this.xref.setStartXRef(startXRef);
     },
     setup: function PDFDocument_setup(recoveryMode) {
+      var _this = this;
+
       this.xref.parse(recoveryMode);
-      var self = this;
       var pageFactory = {
         createPage: function createPage(pageIndex, dict, ref, fontCache, builtInCMapCache) {
-          return new Page(self.pdfManager, self.xref, pageIndex, dict, ref, fontCache, builtInCMapCache);
+          return new Page(_this.pdfManager, _this.xref, pageIndex, dict, ref, fontCache, builtInCMapCache);
         }
       };
       this.catalog = new Catalog(this.pdfManager, this.xref, pageFactory);

+ 8 - 4
lib/core/evaluator.js

@@ -138,6 +138,8 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
     return (cs.numComps === 1 || cs.numComps === 3) && cs.isDefaultDecode(dict.getArray('Decode', 'D'));
   };
   function PartialEvaluator(pdfManager, xref, handler, pageIndex, idFactory, fontCache, builtInCMapCache, options) {
+    var _this = this;
+
     this.pdfManager = pdfManager;
     this.xref = xref;
     this.handler = handler;
@@ -147,13 +149,13 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
     this.builtInCMapCache = builtInCMapCache;
     this.options = options || DefaultPartialEvaluatorOptions;
     this.fetchBuiltInCMap = function (name) {
-      var cachedCMap = builtInCMapCache[name];
+      var cachedCMap = _this.builtInCMapCache[name];
       if (cachedCMap) {
         return Promise.resolve(cachedCMap);
       }
       return handler.sendWithPromise('FetchBuiltInCMap', { name: name }).then(function (data) {
         if (data.compressionType !== CMapCompressionType.NONE) {
-          builtInCMapCache[name] = data;
+          _this.builtInCMapCache[name] = data;
         }
         return data;
       });
@@ -223,12 +225,14 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
   var TILING_PATTERN = 1,
       SHADING_PATTERN = 2;
   PartialEvaluator.prototype = {
-    clone: function clone(newOptions) {
-      newOptions = newOptions || DefaultPartialEvaluatorOptions;
+    clone: function clone() {
+      var newOptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : DefaultPartialEvaluatorOptions;
+
       var newEvaluator = Object.create(this);
       newEvaluator.options = newOptions;
       return newEvaluator;
     },
+
     hasBlendModes: function PartialEvaluator_hasBlendModes(resources) {
       if (!isDict(resources)) {
         return false;

+ 2 - 2
lib/display/api.js

@@ -1366,8 +1366,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
 }();
 var version, build;
 {
-  exports.version = version = '1.8.282';
-  exports.build = build = '5fb779d2';
+  exports.version = version = '1.8.284';
+  exports.build = build = '06c93d8f';
 }
 exports.getDocument = getDocument;
 exports.PDFDataRangeTransport = PDFDataRangeTransport;

+ 2 - 2
lib/display/global.js

@@ -39,8 +39,8 @@ if (!_util.globalScope.PDFJS) {
 }
 var PDFJS = _util.globalScope.PDFJS;
 {
-  PDFJS.version = '1.8.282';
-  PDFJS.build = '5fb779d2';
+  PDFJS.version = '1.8.284';
+  PDFJS.build = '06c93d8f';
 }
 PDFJS.pdfBug = false;
 if (PDFJS.verbosity !== undefined) {

+ 2 - 2
lib/pdf.js

@@ -14,8 +14,8 @@
  */
 'use strict';
 
-var pdfjsVersion = '1.8.282';
-var pdfjsBuild = '5fb779d2';
+var pdfjsVersion = '1.8.284';
+var pdfjsBuild = '06c93d8f';
 var pdfjsSharedUtil = require('./shared/util.js');
 var pdfjsDisplayGlobal = require('./display/global.js');
 var pdfjsDisplayAPI = require('./display/api.js');

+ 2 - 2
lib/pdf.worker.js

@@ -14,8 +14,8 @@
  */
 'use strict';
 
-var pdfjsVersion = '1.8.282';
-var pdfjsBuild = '5fb779d2';
+var pdfjsVersion = '1.8.284';
+var pdfjsBuild = '06c93d8f';
 var pdfjsCoreWorker = require('./core/worker.js');
 {
   require('./core/network.js');

+ 1 - 1
package.json

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

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.