|
@@ -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 + '".'));
|
|
|
}
|