Kaynağa Gözat

PDF.js version 2.0.122 - See mozilla/pdf.js@1d67d9dccd7dd13f47913ba288e821aacd73bfe5

pdfjsbot 7 yıl önce
ebeveyn
işleme
f40d2cb8d3

+ 1 - 1
bower.json

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

+ 34 - 24
build/pdf.combined.js

@@ -11639,7 +11639,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) {
   if (worker.destroyed) {
     return Promise.reject(new Error('Worker was destroyed'));
   }
-  var apiVersion = '2.0.120';
+  var apiVersion = '2.0.122';
   source.disableAutoFetch = (0, _dom_utils.getDefaultSetting)('disableAutoFetch');
   source.disableStream = (0, _dom_utils.getDefaultSetting)('disableStream');
   source.chunkedViewerLoading = !!pdfDataRangeTransport;
@@ -12915,8 +12915,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() {
 }();
 var version, build;
 {
-  exports.version = version = '2.0.120';
-  exports.build = build = 'e162df59';
+  exports.version = version = '2.0.122';
+  exports.build = build = '1d67d9dc';
 }
 exports.getDocument = getDocument;
 exports.LoopbackPort = LoopbackPort;
@@ -26684,9 +26684,11 @@ var SVGGraphics = function SVGGraphics() {
       },
       closePath: function SVGGraphics_closePath() {
         var current = this.current;
-        var d = current.path.getAttributeNS(null, 'd');
-        d += 'Z';
-        current.path.setAttributeNS(null, 'd', d);
+        if (current.path) {
+          var d = current.path.getAttributeNS(null, 'd');
+          d += 'Z';
+          current.path.setAttributeNS(null, 'd', d);
+        }
       },
       setLeading: function SVGGraphics_setLeading(leading) {
         this.current.leading = -leading;
@@ -26735,23 +26737,29 @@ var SVGGraphics = function SVGGraphics() {
       },
       fill: function SVGGraphics_fill() {
         var current = this.current;
-        current.element.setAttributeNS(null, 'fill', current.fillColor);
-        current.element.setAttributeNS(null, 'fill-opacity', current.fillAlpha);
+        if (current.element) {
+          current.element.setAttributeNS(null, 'fill', current.fillColor);
+          current.element.setAttributeNS(null, 'fill-opacity', current.fillAlpha);
+        }
       },
       stroke: function SVGGraphics_stroke() {
         var current = this.current;
-        current.element.setAttributeNS(null, 'stroke', current.strokeColor);
-        current.element.setAttributeNS(null, 'stroke-opacity', current.strokeAlpha);
-        current.element.setAttributeNS(null, 'stroke-miterlimit', pf(current.miterLimit));
-        current.element.setAttributeNS(null, 'stroke-linecap', current.lineCap);
-        current.element.setAttributeNS(null, 'stroke-linejoin', current.lineJoin);
-        current.element.setAttributeNS(null, 'stroke-width', pf(current.lineWidth) + 'px');
-        current.element.setAttributeNS(null, 'stroke-dasharray', current.dashArray.map(pf).join(' '));
-        current.element.setAttributeNS(null, 'stroke-dashoffset', pf(current.dashPhase) + 'px');
-        current.element.setAttributeNS(null, 'fill', 'none');
+        if (current.element) {
+          current.element.setAttributeNS(null, 'stroke', current.strokeColor);
+          current.element.setAttributeNS(null, 'stroke-opacity', current.strokeAlpha);
+          current.element.setAttributeNS(null, 'stroke-miterlimit', pf(current.miterLimit));
+          current.element.setAttributeNS(null, 'stroke-linecap', current.lineCap);
+          current.element.setAttributeNS(null, 'stroke-linejoin', current.lineJoin);
+          current.element.setAttributeNS(null, 'stroke-width', pf(current.lineWidth) + 'px');
+          current.element.setAttributeNS(null, 'stroke-dasharray', current.dashArray.map(pf).join(' '));
+          current.element.setAttributeNS(null, 'stroke-dashoffset', pf(current.dashPhase) + 'px');
+          current.element.setAttributeNS(null, 'fill', 'none');
+        }
       },
       eoFill: function SVGGraphics_eoFill() {
-        this.current.element.setAttributeNS(null, 'fill-rule', 'evenodd');
+        if (this.current.element) {
+          this.current.element.setAttributeNS(null, 'fill-rule', 'evenodd');
+        }
         this.fill();
       },
       fillStroke: function SVGGraphics_fillStroke() {
@@ -26759,7 +26767,9 @@ var SVGGraphics = function SVGGraphics() {
         this.fill();
       },
       eoFillStroke: function SVGGraphics_eoFillStroke() {
-        this.current.element.setAttributeNS(null, 'fill-rule', 'evenodd');
+        if (this.current.element) {
+          this.current.element.setAttributeNS(null, 'fill-rule', 'evenodd');
+        }
         this.fillStroke();
       },
       closeStroke: function SVGGraphics_closeStroke() {
@@ -26906,8 +26916,8 @@ exports.SVGGraphics = SVGGraphics;
 "use strict";
 
 
-var pdfjsVersion = '2.0.120';
-var pdfjsBuild = 'e162df59';
+var pdfjsVersion = '2.0.122';
+var pdfjsBuild = '1d67d9dc';
 var pdfjsSharedUtil = __w_pdfjs_require__(0);
 var pdfjsDisplayGlobal = __w_pdfjs_require__(129);
 var pdfjsDisplayAPI = __w_pdfjs_require__(64);
@@ -32482,8 +32492,8 @@ if (!_global_scope2.default.PDFJS) {
 }
 var PDFJS = _global_scope2.default.PDFJS;
 {
-  PDFJS.version = '2.0.120';
-  PDFJS.build = 'e162df59';
+  PDFJS.version = '2.0.122';
+  PDFJS.build = '1d67d9dc';
 }
 PDFJS.pdfBug = false;
 if (PDFJS.verbosity !== undefined) {
@@ -35412,7 +35422,7 @@ var WorkerMessageHandler = {
     var cancelXHRs = null;
     var WorkerTasks = [];
     var apiVersion = docParams.apiVersion;
-    var workerVersion = '2.0.120';
+    var workerVersion = '2.0.122';
     if (apiVersion !== null && apiVersion !== workerVersion) {
       throw new Error('The API version "' + apiVersion + '" does not match ' + ('the Worker version "' + workerVersion + '".'));
     }

Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
build/pdf.combined.js.map


+ 33 - 23
build/pdf.js

@@ -3291,7 +3291,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) {
   if (worker.destroyed) {
     return Promise.reject(new Error('Worker was destroyed'));
   }
-  var apiVersion = '2.0.120';
+  var apiVersion = '2.0.122';
   source.disableAutoFetch = (0, _dom_utils.getDefaultSetting)('disableAutoFetch');
   source.disableStream = (0, _dom_utils.getDefaultSetting)('disableStream');
   source.chunkedViewerLoading = !!pdfDataRangeTransport;
@@ -4654,8 +4654,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() {
 }();
 var version, build;
 {
-  exports.version = version = '2.0.120';
-  exports.build = build = 'e162df59';
+  exports.version = version = '2.0.122';
+  exports.build = build = '1d67d9dc';
 }
 exports.getDocument = getDocument;
 exports.LoopbackPort = LoopbackPort;
@@ -7498,9 +7498,11 @@ var SVGGraphics = function SVGGraphics() {
       },
       closePath: function SVGGraphics_closePath() {
         var current = this.current;
-        var d = current.path.getAttributeNS(null, 'd');
-        d += 'Z';
-        current.path.setAttributeNS(null, 'd', d);
+        if (current.path) {
+          var d = current.path.getAttributeNS(null, 'd');
+          d += 'Z';
+          current.path.setAttributeNS(null, 'd', d);
+        }
       },
       setLeading: function SVGGraphics_setLeading(leading) {
         this.current.leading = -leading;
@@ -7549,23 +7551,29 @@ var SVGGraphics = function SVGGraphics() {
       },
       fill: function SVGGraphics_fill() {
         var current = this.current;
-        current.element.setAttributeNS(null, 'fill', current.fillColor);
-        current.element.setAttributeNS(null, 'fill-opacity', current.fillAlpha);
+        if (current.element) {
+          current.element.setAttributeNS(null, 'fill', current.fillColor);
+          current.element.setAttributeNS(null, 'fill-opacity', current.fillAlpha);
+        }
       },
       stroke: function SVGGraphics_stroke() {
         var current = this.current;
-        current.element.setAttributeNS(null, 'stroke', current.strokeColor);
-        current.element.setAttributeNS(null, 'stroke-opacity', current.strokeAlpha);
-        current.element.setAttributeNS(null, 'stroke-miterlimit', pf(current.miterLimit));
-        current.element.setAttributeNS(null, 'stroke-linecap', current.lineCap);
-        current.element.setAttributeNS(null, 'stroke-linejoin', current.lineJoin);
-        current.element.setAttributeNS(null, 'stroke-width', pf(current.lineWidth) + 'px');
-        current.element.setAttributeNS(null, 'stroke-dasharray', current.dashArray.map(pf).join(' '));
-        current.element.setAttributeNS(null, 'stroke-dashoffset', pf(current.dashPhase) + 'px');
-        current.element.setAttributeNS(null, 'fill', 'none');
+        if (current.element) {
+          current.element.setAttributeNS(null, 'stroke', current.strokeColor);
+          current.element.setAttributeNS(null, 'stroke-opacity', current.strokeAlpha);
+          current.element.setAttributeNS(null, 'stroke-miterlimit', pf(current.miterLimit));
+          current.element.setAttributeNS(null, 'stroke-linecap', current.lineCap);
+          current.element.setAttributeNS(null, 'stroke-linejoin', current.lineJoin);
+          current.element.setAttributeNS(null, 'stroke-width', pf(current.lineWidth) + 'px');
+          current.element.setAttributeNS(null, 'stroke-dasharray', current.dashArray.map(pf).join(' '));
+          current.element.setAttributeNS(null, 'stroke-dashoffset', pf(current.dashPhase) + 'px');
+          current.element.setAttributeNS(null, 'fill', 'none');
+        }
       },
       eoFill: function SVGGraphics_eoFill() {
-        this.current.element.setAttributeNS(null, 'fill-rule', 'evenodd');
+        if (this.current.element) {
+          this.current.element.setAttributeNS(null, 'fill-rule', 'evenodd');
+        }
         this.fill();
       },
       fillStroke: function SVGGraphics_fillStroke() {
@@ -7573,7 +7581,9 @@ var SVGGraphics = function SVGGraphics() {
         this.fill();
       },
       eoFillStroke: function SVGGraphics_eoFillStroke() {
-        this.current.element.setAttributeNS(null, 'fill-rule', 'evenodd');
+        if (this.current.element) {
+          this.current.element.setAttributeNS(null, 'fill-rule', 'evenodd');
+        }
         this.fillStroke();
       },
       closeStroke: function SVGGraphics_closeStroke() {
@@ -7720,8 +7730,8 @@ exports.SVGGraphics = SVGGraphics;
 "use strict";
 
 
-var pdfjsVersion = '2.0.120';
-var pdfjsBuild = 'e162df59';
+var pdfjsVersion = '2.0.122';
+var pdfjsBuild = '1d67d9dc';
 var pdfjsSharedUtil = __w_pdfjs_require__(0);
 var pdfjsDisplayGlobal = __w_pdfjs_require__(113);
 var pdfjsDisplayAPI = __w_pdfjs_require__(57);
@@ -13296,8 +13306,8 @@ if (!_global_scope2.default.PDFJS) {
 }
 var PDFJS = _global_scope2.default.PDFJS;
 {
-  PDFJS.version = '2.0.120';
-  PDFJS.build = 'e162df59';
+  PDFJS.version = '2.0.122';
+  PDFJS.build = '1d67d9dc';
 }
 PDFJS.pdfBug = false;
 if (PDFJS.verbosity !== undefined) {

Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
build/pdf.js.map


Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
build/pdf.min.js


+ 3 - 3
build/pdf.worker.js

@@ -21914,8 +21914,8 @@ exports.PostScriptCompiler = PostScriptCompiler;
 "use strict";
 
 
-var pdfjsVersion = '2.0.120';
-var pdfjsBuild = 'e162df59';
+var pdfjsVersion = '2.0.122';
+var pdfjsBuild = '1d67d9dc';
 var pdfjsCoreWorker = __w_pdfjs_require__(71);
 exports.WorkerMessageHandler = pdfjsCoreWorker.WorkerMessageHandler;
 
@@ -22120,7 +22120,7 @@ var WorkerMessageHandler = {
     var cancelXHRs = null;
     var WorkerTasks = [];
     var apiVersion = docParams.apiVersion;
-    var workerVersion = '2.0.120';
+    var workerVersion = '2.0.122';
     if (apiVersion !== null && apiVersion !== workerVersion) {
       throw new Error('The API version "' + apiVersion + '" does not match ' + ('the Worker version "' + workerVersion + '".'));
     }

Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
build/pdf.worker.js.map


Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
build/pdf.worker.min.js


+ 1 - 1
lib/core/worker.js

@@ -208,7 +208,7 @@ var WorkerMessageHandler = {
     var cancelXHRs = null;
     var WorkerTasks = [];
     var apiVersion = docParams.apiVersion;
-    var workerVersion = '2.0.120';
+    var workerVersion = '2.0.122';
     if (apiVersion !== null && apiVersion !== workerVersion) {
       throw new Error('The API version "' + apiVersion + '" does not match ' + ('the Worker version "' + workerVersion + '".'));
     }

+ 3 - 3
lib/display/api.js

@@ -172,7 +172,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) {
   if (worker.destroyed) {
     return Promise.reject(new Error('Worker was destroyed'));
   }
-  var apiVersion = '2.0.120';
+  var apiVersion = '2.0.122';
   source.disableAutoFetch = (0, _dom_utils.getDefaultSetting)('disableAutoFetch');
   source.disableStream = (0, _dom_utils.getDefaultSetting)('disableStream');
   source.chunkedViewerLoading = !!pdfDataRangeTransport;
@@ -1535,8 +1535,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() {
 }();
 var version, build;
 {
-  exports.version = version = '2.0.120';
-  exports.build = build = 'e162df59';
+  exports.version = version = '2.0.122';
+  exports.build = build = '1d67d9dc';
 }
 exports.getDocument = getDocument;
 exports.LoopbackPort = LoopbackPort;

+ 2 - 2
lib/display/global.js

@@ -44,8 +44,8 @@ if (!_global_scope2.default.PDFJS) {
 }
 var PDFJS = _global_scope2.default.PDFJS;
 {
-  PDFJS.version = '2.0.120';
-  PDFJS.build = 'e162df59';
+  PDFJS.version = '2.0.122';
+  PDFJS.build = '1d67d9dc';
 }
 PDFJS.pdfBug = false;
 if (PDFJS.verbosity !== undefined) {

+ 26 - 16
lib/display/svg.js

@@ -814,9 +814,11 @@ var SVGGraphics = function SVGGraphics() {
       },
       closePath: function SVGGraphics_closePath() {
         var current = this.current;
-        var d = current.path.getAttributeNS(null, 'd');
-        d += 'Z';
-        current.path.setAttributeNS(null, 'd', d);
+        if (current.path) {
+          var d = current.path.getAttributeNS(null, 'd');
+          d += 'Z';
+          current.path.setAttributeNS(null, 'd', d);
+        }
       },
       setLeading: function SVGGraphics_setLeading(leading) {
         this.current.leading = -leading;
@@ -865,23 +867,29 @@ var SVGGraphics = function SVGGraphics() {
       },
       fill: function SVGGraphics_fill() {
         var current = this.current;
-        current.element.setAttributeNS(null, 'fill', current.fillColor);
-        current.element.setAttributeNS(null, 'fill-opacity', current.fillAlpha);
+        if (current.element) {
+          current.element.setAttributeNS(null, 'fill', current.fillColor);
+          current.element.setAttributeNS(null, 'fill-opacity', current.fillAlpha);
+        }
       },
       stroke: function SVGGraphics_stroke() {
         var current = this.current;
-        current.element.setAttributeNS(null, 'stroke', current.strokeColor);
-        current.element.setAttributeNS(null, 'stroke-opacity', current.strokeAlpha);
-        current.element.setAttributeNS(null, 'stroke-miterlimit', pf(current.miterLimit));
-        current.element.setAttributeNS(null, 'stroke-linecap', current.lineCap);
-        current.element.setAttributeNS(null, 'stroke-linejoin', current.lineJoin);
-        current.element.setAttributeNS(null, 'stroke-width', pf(current.lineWidth) + 'px');
-        current.element.setAttributeNS(null, 'stroke-dasharray', current.dashArray.map(pf).join(' '));
-        current.element.setAttributeNS(null, 'stroke-dashoffset', pf(current.dashPhase) + 'px');
-        current.element.setAttributeNS(null, 'fill', 'none');
+        if (current.element) {
+          current.element.setAttributeNS(null, 'stroke', current.strokeColor);
+          current.element.setAttributeNS(null, 'stroke-opacity', current.strokeAlpha);
+          current.element.setAttributeNS(null, 'stroke-miterlimit', pf(current.miterLimit));
+          current.element.setAttributeNS(null, 'stroke-linecap', current.lineCap);
+          current.element.setAttributeNS(null, 'stroke-linejoin', current.lineJoin);
+          current.element.setAttributeNS(null, 'stroke-width', pf(current.lineWidth) + 'px');
+          current.element.setAttributeNS(null, 'stroke-dasharray', current.dashArray.map(pf).join(' '));
+          current.element.setAttributeNS(null, 'stroke-dashoffset', pf(current.dashPhase) + 'px');
+          current.element.setAttributeNS(null, 'fill', 'none');
+        }
       },
       eoFill: function SVGGraphics_eoFill() {
-        this.current.element.setAttributeNS(null, 'fill-rule', 'evenodd');
+        if (this.current.element) {
+          this.current.element.setAttributeNS(null, 'fill-rule', 'evenodd');
+        }
         this.fill();
       },
       fillStroke: function SVGGraphics_fillStroke() {
@@ -889,7 +897,9 @@ var SVGGraphics = function SVGGraphics() {
         this.fill();
       },
       eoFillStroke: function SVGGraphics_eoFillStroke() {
-        this.current.element.setAttributeNS(null, 'fill-rule', 'evenodd');
+        if (this.current.element) {
+          this.current.element.setAttributeNS(null, 'fill-rule', 'evenodd');
+        }
         this.fillStroke();
       },
       closeStroke: function SVGGraphics_closeStroke() {

+ 2 - 2
lib/pdf.js

@@ -14,8 +14,8 @@
  */
 'use strict';
 
-var pdfjsVersion = '2.0.120';
-var pdfjsBuild = 'e162df59';
+var pdfjsVersion = '2.0.122';
+var pdfjsBuild = '1d67d9dc';
 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,7 +14,7 @@
  */
 'use strict';
 
-var pdfjsVersion = '2.0.120';
-var pdfjsBuild = 'e162df59';
+var pdfjsVersion = '2.0.122';
+var pdfjsBuild = '1d67d9dc';
 var pdfjsCoreWorker = require('./core/worker.js');
 exports.WorkerMessageHandler = pdfjsCoreWorker.WorkerMessageHandler;

+ 1 - 1
package.json

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

Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor