Browse Source

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

master v2.0.122
pdfjsbot 8 years ago
parent
commit
f40d2cb8d3
  1. 2
      bower.json
  2. 58
      build/pdf.combined.js
  3. 2
      build/pdf.combined.js.map
  4. 56
      build/pdf.js
  5. 2
      build/pdf.js.map
  6. 2
      build/pdf.min.js
  7. 6
      build/pdf.worker.js
  8. 2
      build/pdf.worker.js.map
  9. 2
      build/pdf.worker.min.js
  10. 2
      lib/core/worker.js
  11. 6
      lib/display/api.js
  12. 4
      lib/display/global.js
  13. 42
      lib/display/svg.js
  14. 4
      lib/pdf.js
  15. 4
      lib/pdf.worker.js
  16. 2
      package.json

2
bower.json

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

58
build/pdf.combined.js

@ -11639,7 +11639,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) { @@ -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() { @@ -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() { @@ -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() { @@ -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() { @@ -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; @@ -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) { @@ -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 = { @@ -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 + '".'));
}

2
build/pdf.combined.js.map

File diff suppressed because one or more lines are too long

56
build/pdf.js

@ -3291,7 +3291,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) { @@ -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() { @@ -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() { @@ -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() { @@ -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() { @@ -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; @@ -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) { @@ -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) {

2
build/pdf.js.map

File diff suppressed because one or more lines are too long

2
build/pdf.min.js vendored

File diff suppressed because one or more lines are too long

6
build/pdf.worker.js vendored

@ -21914,8 +21914,8 @@ exports.PostScriptCompiler = PostScriptCompiler; @@ -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 = { @@ -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 + '".'));
}

2
build/pdf.worker.js.map vendored

File diff suppressed because one or more lines are too long

2
build/pdf.worker.min.js vendored

File diff suppressed because one or more lines are too long

2
lib/core/worker.js

@ -208,7 +208,7 @@ var WorkerMessageHandler = { @@ -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 + '".'));
}

6
lib/display/api.js

@ -172,7 +172,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) { @@ -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() { @@ -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;

4
lib/display/global.js

@ -44,8 +44,8 @@ if (!_global_scope2.default.PDFJS) { @@ -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) {

42
lib/display/svg.js

@ -814,9 +814,11 @@ var SVGGraphics = function SVGGraphics() { @@ -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() { @@ -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() { @@ -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() {

4
lib/pdf.js

@ -14,8 +14,8 @@ @@ -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');

4
lib/pdf.worker.js vendored

@ -14,7 +14,7 @@ @@ -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;

2
package.json

@ -1,6 +1,6 @@ @@ -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": [

Loading…
Cancel
Save