Browse Source

PDF.js version 1.8.478 - See mozilla/pdf.js@c6ee05f7e5df878a2c2d78038e3069e1a7ea3b9d

master v1.8.478
pdfjsbot 8 years ago
parent
commit
938fc051d3
  1. 2
      bower.json
  2. 26
      build/pdf.combined.js
  3. 2
      build/pdf.combined.js.map
  4. 26
      build/pdf.js
  5. 2
      build/pdf.js.map
  6. 12
      build/pdf.min.js
  7. 4
      build/pdf.worker.js
  8. 2
      build/pdf.worker.js.map
  9. 4
      lib/display/api.js
  10. 4
      lib/display/global.js
  11. 14
      lib/display/svg.js
  12. 4
      lib/pdf.js
  13. 4
      lib/pdf.worker.js
  14. 2
      package.json

2
bower.json

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

26
build/pdf.combined.js

@ -13077,8 +13077,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
}(); }();
var version, build; var version, build;
{ {
exports.version = version = '1.8.476'; exports.version = version = '1.8.478';
exports.build = build = '36fb3686'; exports.build = build = 'c6ee05f7';
} }
exports.getDocument = getDocument; exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort; exports.LoopbackPort = LoopbackPort;
@ -13365,6 +13365,7 @@ var SVGGraphics = function SVGGraphics() {
this.extraStack = []; this.extraStack = [];
this.commonObjs = commonObjs; this.commonObjs = commonObjs;
this.objs = objs; this.objs = objs;
this.pendingClip = null;
this.pendingEOFill = false; this.pendingEOFill = false;
this.embedFonts = false; this.embedFonts = false;
this.embeddedFonts = Object.create(null); this.embeddedFonts = Object.create(null);
@ -13388,6 +13389,7 @@ var SVGGraphics = function SVGGraphics() {
restore: function SVGGraphics_restore() { restore: function SVGGraphics_restore() {
this.transformMatrix = this.transformStack.pop(); this.transformMatrix = this.transformStack.pop();
this.current = this.extraStack.pop(); this.current = this.extraStack.pop();
this.pendingClip = null;
this.tgrp = null; this.tgrp = null;
}, },
group: function SVGGraphics_group(items) { group: function SVGGraphics_group(items) {
@ -13826,8 +13828,10 @@ var SVGGraphics = function SVGGraphics() {
current.element = current.path; current.element = current.path;
current.setCurrentPoint(x, y); current.setCurrentPoint(x, y);
}, },
endPath: function SVGGraphics_endPath() {}, endPath: function SVGGraphics_endPath() {
clip: function SVGGraphics_clip(type) { if (!this.pendingClip) {
return;
}
var current = this.current; var current = this.current;
var clipId = 'clippath' + clipCount; var clipId = 'clippath' + clipCount;
clipCount++; clipCount++;
@ -13835,11 +13839,12 @@ var SVGGraphics = function SVGGraphics() {
clipPath.setAttributeNS(null, 'id', clipId); clipPath.setAttributeNS(null, 'id', clipId);
clipPath.setAttributeNS(null, 'transform', pm(this.transformMatrix)); clipPath.setAttributeNS(null, 'transform', pm(this.transformMatrix));
var clipElement = current.element.cloneNode(); var clipElement = current.element.cloneNode();
if (type === 'evenodd') { if (this.pendingClip === 'evenodd') {
clipElement.setAttributeNS(null, 'clip-rule', 'evenodd'); clipElement.setAttributeNS(null, 'clip-rule', 'evenodd');
} else { } else {
clipElement.setAttributeNS(null, 'clip-rule', 'nonzero'); clipElement.setAttributeNS(null, 'clip-rule', 'nonzero');
} }
this.pendingClip = null;
clipPath.appendChild(clipElement); clipPath.appendChild(clipElement);
this.defs.appendChild(clipPath); this.defs.appendChild(clipPath);
if (current.activeClipUrl) { if (current.activeClipUrl) {
@ -13851,6 +13856,9 @@ var SVGGraphics = function SVGGraphics() {
current.activeClipUrl = 'url(#' + clipId + ')'; current.activeClipUrl = 'url(#' + clipId + ')';
this.tgrp = null; this.tgrp = null;
}, },
clip: function SVGGraphics_clip(type) {
this.pendingClip = type;
},
closePath: function SVGGraphics_closePath() { closePath: function SVGGraphics_closePath() {
var current = this.current; var current = this.current;
var d = current.path.getAttributeNS(null, 'd'); var d = current.path.getAttributeNS(null, 'd');
@ -28425,8 +28433,8 @@ if (!_util.globalScope.PDFJS) {
} }
var PDFJS = _util.globalScope.PDFJS; var PDFJS = _util.globalScope.PDFJS;
{ {
PDFJS.version = '1.8.476'; PDFJS.version = '1.8.478';
PDFJS.build = '36fb3686'; PDFJS.build = 'c6ee05f7';
} }
PDFJS.pdfBug = false; PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) { if (PDFJS.verbosity !== undefined) {
@ -47043,8 +47051,8 @@ exports.TilingPattern = TilingPattern;
"use strict"; "use strict";
var pdfjsVersion = '1.8.476'; var pdfjsVersion = '1.8.478';
var pdfjsBuild = '36fb3686'; var pdfjsBuild = 'c6ee05f7';
var pdfjsSharedUtil = __w_pdfjs_require__(0); var pdfjsSharedUtil = __w_pdfjs_require__(0);
var pdfjsDisplayGlobal = __w_pdfjs_require__(26); var pdfjsDisplayGlobal = __w_pdfjs_require__(26);
var pdfjsDisplayAPI = __w_pdfjs_require__(10); var pdfjsDisplayAPI = __w_pdfjs_require__(10);

2
build/pdf.combined.js.map

File diff suppressed because one or more lines are too long

26
build/pdf.js

@ -3806,8 +3806,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
}(); }();
var version, build; var version, build;
{ {
exports.version = version = '1.8.476'; exports.version = version = '1.8.478';
exports.build = build = '36fb3686'; exports.build = build = 'c6ee05f7';
} }
exports.getDocument = getDocument; exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort; exports.LoopbackPort = LoopbackPort;
@ -4094,6 +4094,7 @@ var SVGGraphics = function SVGGraphics() {
this.extraStack = []; this.extraStack = [];
this.commonObjs = commonObjs; this.commonObjs = commonObjs;
this.objs = objs; this.objs = objs;
this.pendingClip = null;
this.pendingEOFill = false; this.pendingEOFill = false;
this.embedFonts = false; this.embedFonts = false;
this.embeddedFonts = Object.create(null); this.embeddedFonts = Object.create(null);
@ -4117,6 +4118,7 @@ var SVGGraphics = function SVGGraphics() {
restore: function SVGGraphics_restore() { restore: function SVGGraphics_restore() {
this.transformMatrix = this.transformStack.pop(); this.transformMatrix = this.transformStack.pop();
this.current = this.extraStack.pop(); this.current = this.extraStack.pop();
this.pendingClip = null;
this.tgrp = null; this.tgrp = null;
}, },
group: function SVGGraphics_group(items) { group: function SVGGraphics_group(items) {
@ -4555,8 +4557,10 @@ var SVGGraphics = function SVGGraphics() {
current.element = current.path; current.element = current.path;
current.setCurrentPoint(x, y); current.setCurrentPoint(x, y);
}, },
endPath: function SVGGraphics_endPath() {}, endPath: function SVGGraphics_endPath() {
clip: function SVGGraphics_clip(type) { if (!this.pendingClip) {
return;
}
var current = this.current; var current = this.current;
var clipId = 'clippath' + clipCount; var clipId = 'clippath' + clipCount;
clipCount++; clipCount++;
@ -4564,11 +4568,12 @@ var SVGGraphics = function SVGGraphics() {
clipPath.setAttributeNS(null, 'id', clipId); clipPath.setAttributeNS(null, 'id', clipId);
clipPath.setAttributeNS(null, 'transform', pm(this.transformMatrix)); clipPath.setAttributeNS(null, 'transform', pm(this.transformMatrix));
var clipElement = current.element.cloneNode(); var clipElement = current.element.cloneNode();
if (type === 'evenodd') { if (this.pendingClip === 'evenodd') {
clipElement.setAttributeNS(null, 'clip-rule', 'evenodd'); clipElement.setAttributeNS(null, 'clip-rule', 'evenodd');
} else { } else {
clipElement.setAttributeNS(null, 'clip-rule', 'nonzero'); clipElement.setAttributeNS(null, 'clip-rule', 'nonzero');
} }
this.pendingClip = null;
clipPath.appendChild(clipElement); clipPath.appendChild(clipElement);
this.defs.appendChild(clipPath); this.defs.appendChild(clipPath);
if (current.activeClipUrl) { if (current.activeClipUrl) {
@ -4580,6 +4585,9 @@ var SVGGraphics = function SVGGraphics() {
current.activeClipUrl = 'url(#' + clipId + ')'; current.activeClipUrl = 'url(#' + clipId + ')';
this.tgrp = null; this.tgrp = null;
}, },
clip: function SVGGraphics_clip(type) {
this.pendingClip = type;
},
closePath: function SVGGraphics_closePath() { closePath: function SVGGraphics_closePath() {
var current = this.current; var current = this.current;
var d = current.path.getAttributeNS(null, 'd'); var d = current.path.getAttributeNS(null, 'd');
@ -5780,8 +5788,8 @@ if (!_util.globalScope.PDFJS) {
} }
var PDFJS = _util.globalScope.PDFJS; var PDFJS = _util.globalScope.PDFJS;
{ {
PDFJS.version = '1.8.476'; PDFJS.version = '1.8.478';
PDFJS.build = '36fb3686'; PDFJS.build = 'c6ee05f7';
} }
PDFJS.pdfBug = false; PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) { if (PDFJS.verbosity !== undefined) {
@ -11320,8 +11328,8 @@ exports.TilingPattern = TilingPattern;
"use strict"; "use strict";
var pdfjsVersion = '1.8.476'; var pdfjsVersion = '1.8.478';
var pdfjsBuild = '36fb3686'; var pdfjsBuild = 'c6ee05f7';
var pdfjsSharedUtil = __w_pdfjs_require__(0); var pdfjsSharedUtil = __w_pdfjs_require__(0);
var pdfjsDisplayGlobal = __w_pdfjs_require__(9); var pdfjsDisplayGlobal = __w_pdfjs_require__(9);
var pdfjsDisplayAPI = __w_pdfjs_require__(3); var pdfjsDisplayAPI = __w_pdfjs_require__(3);

2
build/pdf.js.map

File diff suppressed because one or more lines are too long

12
build/pdf.min.js vendored

File diff suppressed because one or more lines are too long

4
build/pdf.worker.js vendored

@ -40317,8 +40317,8 @@ exports.Type1Parser = Type1Parser;
"use strict"; "use strict";
var pdfjsVersion = '1.8.476'; var pdfjsVersion = '1.8.478';
var pdfjsBuild = '36fb3686'; var pdfjsBuild = 'c6ee05f7';
var pdfjsCoreWorker = __w_pdfjs_require__(8); var pdfjsCoreWorker = __w_pdfjs_require__(8);
{ {
__w_pdfjs_require__(19); __w_pdfjs_require__(19);

2
build/pdf.worker.js.map vendored

File diff suppressed because one or more lines are too long

4
lib/display/api.js

@ -1443,8 +1443,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
}(); }();
var version, build; var version, build;
{ {
exports.version = version = '1.8.476'; exports.version = version = '1.8.478';
exports.build = build = '36fb3686'; exports.build = build = 'c6ee05f7';
} }
exports.getDocument = getDocument; exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort; exports.LoopbackPort = LoopbackPort;

4
lib/display/global.js

@ -39,8 +39,8 @@ if (!_util.globalScope.PDFJS) {
} }
var PDFJS = _util.globalScope.PDFJS; var PDFJS = _util.globalScope.PDFJS;
{ {
PDFJS.version = '1.8.476'; PDFJS.version = '1.8.478';
PDFJS.build = '36fb3686'; PDFJS.build = 'c6ee05f7';
} }
PDFJS.pdfBug = false; PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) { if (PDFJS.verbosity !== undefined) {

14
lib/display/svg.js

@ -282,6 +282,7 @@ var SVGGraphics = function SVGGraphics() {
this.extraStack = []; this.extraStack = [];
this.commonObjs = commonObjs; this.commonObjs = commonObjs;
this.objs = objs; this.objs = objs;
this.pendingClip = null;
this.pendingEOFill = false; this.pendingEOFill = false;
this.embedFonts = false; this.embedFonts = false;
this.embeddedFonts = Object.create(null); this.embeddedFonts = Object.create(null);
@ -305,6 +306,7 @@ var SVGGraphics = function SVGGraphics() {
restore: function SVGGraphics_restore() { restore: function SVGGraphics_restore() {
this.transformMatrix = this.transformStack.pop(); this.transformMatrix = this.transformStack.pop();
this.current = this.extraStack.pop(); this.current = this.extraStack.pop();
this.pendingClip = null;
this.tgrp = null; this.tgrp = null;
}, },
group: function SVGGraphics_group(items) { group: function SVGGraphics_group(items) {
@ -743,8 +745,10 @@ var SVGGraphics = function SVGGraphics() {
current.element = current.path; current.element = current.path;
current.setCurrentPoint(x, y); current.setCurrentPoint(x, y);
}, },
endPath: function SVGGraphics_endPath() {}, endPath: function SVGGraphics_endPath() {
clip: function SVGGraphics_clip(type) { if (!this.pendingClip) {
return;
}
var current = this.current; var current = this.current;
var clipId = 'clippath' + clipCount; var clipId = 'clippath' + clipCount;
clipCount++; clipCount++;
@ -752,11 +756,12 @@ var SVGGraphics = function SVGGraphics() {
clipPath.setAttributeNS(null, 'id', clipId); clipPath.setAttributeNS(null, 'id', clipId);
clipPath.setAttributeNS(null, 'transform', pm(this.transformMatrix)); clipPath.setAttributeNS(null, 'transform', pm(this.transformMatrix));
var clipElement = current.element.cloneNode(); var clipElement = current.element.cloneNode();
if (type === 'evenodd') { if (this.pendingClip === 'evenodd') {
clipElement.setAttributeNS(null, 'clip-rule', 'evenodd'); clipElement.setAttributeNS(null, 'clip-rule', 'evenodd');
} else { } else {
clipElement.setAttributeNS(null, 'clip-rule', 'nonzero'); clipElement.setAttributeNS(null, 'clip-rule', 'nonzero');
} }
this.pendingClip = null;
clipPath.appendChild(clipElement); clipPath.appendChild(clipElement);
this.defs.appendChild(clipPath); this.defs.appendChild(clipPath);
if (current.activeClipUrl) { if (current.activeClipUrl) {
@ -768,6 +773,9 @@ var SVGGraphics = function SVGGraphics() {
current.activeClipUrl = 'url(#' + clipId + ')'; current.activeClipUrl = 'url(#' + clipId + ')';
this.tgrp = null; this.tgrp = null;
}, },
clip: function SVGGraphics_clip(type) {
this.pendingClip = type;
},
closePath: function SVGGraphics_closePath() { closePath: function SVGGraphics_closePath() {
var current = this.current; var current = this.current;
var d = current.path.getAttributeNS(null, 'd'); var d = current.path.getAttributeNS(null, 'd');

4
lib/pdf.js

@ -14,8 +14,8 @@
*/ */
'use strict'; 'use strict';
var pdfjsVersion = '1.8.476'; var pdfjsVersion = '1.8.478';
var pdfjsBuild = '36fb3686'; var pdfjsBuild = 'c6ee05f7';
var pdfjsSharedUtil = require('./shared/util.js'); var pdfjsSharedUtil = require('./shared/util.js');
var pdfjsDisplayGlobal = require('./display/global.js'); var pdfjsDisplayGlobal = require('./display/global.js');
var pdfjsDisplayAPI = require('./display/api.js'); var pdfjsDisplayAPI = require('./display/api.js');

4
lib/pdf.worker.js vendored

@ -14,8 +14,8 @@
*/ */
'use strict'; 'use strict';
var pdfjsVersion = '1.8.476'; var pdfjsVersion = '1.8.478';
var pdfjsBuild = '36fb3686'; var pdfjsBuild = 'c6ee05f7';
var pdfjsCoreWorker = require('./core/worker.js'); var pdfjsCoreWorker = require('./core/worker.js');
{ {
require('./core/network.js'); require('./core/network.js');

2
package.json

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

Loading…
Cancel
Save