Browse Source

PDF.js version 1.9.558 - See mozilla/pdf.js@f2618eb2e4db3921cc710edd90f795a8379136d3

master v1.9.558
pdfjsbot 8 years ago
parent
commit
cf9dcb2661
  1. 2
      bower.json
  2. 22
      build/pdf.combined.js
  3. 2
      build/pdf.combined.js.map
  4. 22
      build/pdf.js
  5. 2
      build/pdf.js.map
  6. 2
      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. 10
      lib/display/pattern_helper.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.9.556", "version": "1.9.558",
"main": [ "main": [
"build/pdf.js", "build/pdf.js",
"build/pdf.worker.js" "build/pdf.worker.js"

22
build/pdf.combined.js

@ -13473,8 +13473,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
}(); }();
var version, build; var version, build;
{ {
exports.version = version = '1.9.556'; exports.version = version = '1.9.558';
exports.build = build = '2916ed08'; exports.build = build = 'f2618eb2';
} }
exports.getDocument = getDocument; exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort; exports.LoopbackPort = LoopbackPort;
@ -29310,8 +29310,8 @@ exports.SVGGraphics = SVGGraphics;
"use strict"; "use strict";
var pdfjsVersion = '1.9.556'; var pdfjsVersion = '1.9.558';
var pdfjsBuild = '2916ed08'; var pdfjsBuild = 'f2618eb2';
var pdfjsSharedUtil = __w_pdfjs_require__(0); var pdfjsSharedUtil = __w_pdfjs_require__(0);
var pdfjsDisplayGlobal = __w_pdfjs_require__(98); var pdfjsDisplayGlobal = __w_pdfjs_require__(98);
var pdfjsDisplayAPI = __w_pdfjs_require__(55); var pdfjsDisplayAPI = __w_pdfjs_require__(55);
@ -35173,8 +35173,8 @@ if (!_global_scope2.default.PDFJS) {
} }
var PDFJS = _global_scope2.default.PDFJS; var PDFJS = _global_scope2.default.PDFJS;
{ {
PDFJS.version = '1.9.556'; PDFJS.version = '1.9.558';
PDFJS.build = '2916ed08'; PDFJS.build = 'f2618eb2';
} }
PDFJS.pdfBug = false; PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) { if (PDFJS.verbosity !== undefined) {
@ -37627,7 +37627,7 @@ var TilingPattern = function TilingPatternClosure() {
var tmpCtx = tmpCanvas.context; var tmpCtx = tmpCanvas.context;
var graphics = canvasGraphicsFactory.createCanvasGraphics(tmpCtx); var graphics = canvasGraphicsFactory.createCanvasGraphics(tmpCtx);
graphics.groupLevel = owner.groupLevel; graphics.groupLevel = owner.groupLevel;
this.setFillAndStrokeStyleToContext(tmpCtx, paintType, color); this.setFillAndStrokeStyleToContext(graphics, paintType, color);
this.setScale(width, height, xstep, ystep); this.setScale(width, height, xstep, ystep);
this.transformToScale(graphics); this.transformToScale(graphics);
var tmpTranslate = [1, 0, 0, 1, -topLeft[0], -topLeft[1]]; var tmpTranslate = [1, 0, 0, 1, -topLeft[0], -topLeft[1]];
@ -37657,17 +37657,23 @@ var TilingPattern = function TilingPatternClosure() {
graphics.endPath(); graphics.endPath();
} }
}, },
setFillAndStrokeStyleToContext: function setFillAndStrokeStyleToContext(context, paintType, color) { setFillAndStrokeStyleToContext: function setFillAndStrokeStyleToContext(graphics, paintType, color) {
var context = graphics.ctx,
current = graphics.current;
switch (paintType) { switch (paintType) {
case PaintType.COLORED: case PaintType.COLORED:
var ctx = this.ctx; var ctx = this.ctx;
context.fillStyle = ctx.fillStyle; context.fillStyle = ctx.fillStyle;
context.strokeStyle = ctx.strokeStyle; context.strokeStyle = ctx.strokeStyle;
current.fillColor = ctx.fillStyle;
current.strokeColor = ctx.strokeStyle;
break; break;
case PaintType.UNCOLORED: case PaintType.UNCOLORED:
var cssColor = _util.Util.makeCssRgb(color[0], color[1], color[2]); var cssColor = _util.Util.makeCssRgb(color[0], color[1], color[2]);
context.fillStyle = cssColor; context.fillStyle = cssColor;
context.strokeStyle = cssColor; context.strokeStyle = cssColor;
current.fillColor = cssColor;
current.strokeColor = cssColor;
break; break;
default: default:
throw new _util.FormatError('Unsupported paint type: ' + paintType); throw new _util.FormatError('Unsupported paint type: ' + paintType);

2
build/pdf.combined.js.map

File diff suppressed because one or more lines are too long

22
build/pdf.js

@ -4203,8 +4203,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
}(); }();
var version, build; var version, build;
{ {
exports.version = version = '1.9.556'; exports.version = version = '1.9.558';
exports.build = build = '2916ed08'; exports.build = build = 'f2618eb2';
} }
exports.getDocument = getDocument; exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort; exports.LoopbackPort = LoopbackPort;
@ -7155,8 +7155,8 @@ exports.SVGGraphics = SVGGraphics;
"use strict"; "use strict";
var pdfjsVersion = '1.9.556'; var pdfjsVersion = '1.9.558';
var pdfjsBuild = '2916ed08'; var pdfjsBuild = 'f2618eb2';
var pdfjsSharedUtil = __w_pdfjs_require__(0); var pdfjsSharedUtil = __w_pdfjs_require__(0);
var pdfjsDisplayGlobal = __w_pdfjs_require__(82); var pdfjsDisplayGlobal = __w_pdfjs_require__(82);
var pdfjsDisplayAPI = __w_pdfjs_require__(48); var pdfjsDisplayAPI = __w_pdfjs_require__(48);
@ -13018,8 +13018,8 @@ if (!_global_scope2.default.PDFJS) {
} }
var PDFJS = _global_scope2.default.PDFJS; var PDFJS = _global_scope2.default.PDFJS;
{ {
PDFJS.version = '1.9.556'; PDFJS.version = '1.9.558';
PDFJS.build = '2916ed08'; PDFJS.build = 'f2618eb2';
} }
PDFJS.pdfBug = false; PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) { if (PDFJS.verbosity !== undefined) {
@ -15472,7 +15472,7 @@ var TilingPattern = function TilingPatternClosure() {
var tmpCtx = tmpCanvas.context; var tmpCtx = tmpCanvas.context;
var graphics = canvasGraphicsFactory.createCanvasGraphics(tmpCtx); var graphics = canvasGraphicsFactory.createCanvasGraphics(tmpCtx);
graphics.groupLevel = owner.groupLevel; graphics.groupLevel = owner.groupLevel;
this.setFillAndStrokeStyleToContext(tmpCtx, paintType, color); this.setFillAndStrokeStyleToContext(graphics, paintType, color);
this.setScale(width, height, xstep, ystep); this.setScale(width, height, xstep, ystep);
this.transformToScale(graphics); this.transformToScale(graphics);
var tmpTranslate = [1, 0, 0, 1, -topLeft[0], -topLeft[1]]; var tmpTranslate = [1, 0, 0, 1, -topLeft[0], -topLeft[1]];
@ -15502,17 +15502,23 @@ var TilingPattern = function TilingPatternClosure() {
graphics.endPath(); graphics.endPath();
} }
}, },
setFillAndStrokeStyleToContext: function setFillAndStrokeStyleToContext(context, paintType, color) { setFillAndStrokeStyleToContext: function setFillAndStrokeStyleToContext(graphics, paintType, color) {
var context = graphics.ctx,
current = graphics.current;
switch (paintType) { switch (paintType) {
case PaintType.COLORED: case PaintType.COLORED:
var ctx = this.ctx; var ctx = this.ctx;
context.fillStyle = ctx.fillStyle; context.fillStyle = ctx.fillStyle;
context.strokeStyle = ctx.strokeStyle; context.strokeStyle = ctx.strokeStyle;
current.fillColor = ctx.fillStyle;
current.strokeColor = ctx.strokeStyle;
break; break;
case PaintType.UNCOLORED: case PaintType.UNCOLORED:
var cssColor = _util.Util.makeCssRgb(color[0], color[1], color[2]); var cssColor = _util.Util.makeCssRgb(color[0], color[1], color[2]);
context.fillStyle = cssColor; context.fillStyle = cssColor;
context.strokeStyle = cssColor; context.strokeStyle = cssColor;
current.fillColor = cssColor;
current.strokeColor = cssColor;
break; break;
default: default:
throw new _util.FormatError('Unsupported paint type: ' + paintType); throw new _util.FormatError('Unsupported paint type: ' + paintType);

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

4
build/pdf.worker.js vendored

@ -24512,8 +24512,8 @@ exports.getUnicodeForGlyph = getUnicodeForGlyph;
"use strict"; "use strict";
var pdfjsVersion = '1.9.556'; var pdfjsVersion = '1.9.558';
var pdfjsBuild = '2916ed08'; var pdfjsBuild = 'f2618eb2';
var pdfjsCoreWorker = __w_pdfjs_require__(62); var pdfjsCoreWorker = __w_pdfjs_require__(62);
exports.WorkerMessageHandler = pdfjsCoreWorker.WorkerMessageHandler; exports.WorkerMessageHandler = pdfjsCoreWorker.WorkerMessageHandler;

2
build/pdf.worker.js.map vendored

File diff suppressed because one or more lines are too long

4
lib/display/api.js

@ -1581,8 +1581,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
}(); }();
var version, build; var version, build;
{ {
exports.version = version = '1.9.556'; exports.version = version = '1.9.558';
exports.build = build = '2916ed08'; exports.build = build = 'f2618eb2';
} }
exports.getDocument = getDocument; exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort; exports.LoopbackPort = LoopbackPort;

4
lib/display/global.js

@ -45,8 +45,8 @@ if (!_global_scope2.default.PDFJS) {
} }
var PDFJS = _global_scope2.default.PDFJS; var PDFJS = _global_scope2.default.PDFJS;
{ {
PDFJS.version = '1.9.556'; PDFJS.version = '1.9.558';
PDFJS.build = '2916ed08'; PDFJS.build = 'f2618eb2';
} }
PDFJS.pdfBug = false; PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) { if (PDFJS.verbosity !== undefined) {

10
lib/display/pattern_helper.js

@ -319,7 +319,7 @@ var TilingPattern = function TilingPatternClosure() {
var tmpCtx = tmpCanvas.context; var tmpCtx = tmpCanvas.context;
var graphics = canvasGraphicsFactory.createCanvasGraphics(tmpCtx); var graphics = canvasGraphicsFactory.createCanvasGraphics(tmpCtx);
graphics.groupLevel = owner.groupLevel; graphics.groupLevel = owner.groupLevel;
this.setFillAndStrokeStyleToContext(tmpCtx, paintType, color); this.setFillAndStrokeStyleToContext(graphics, paintType, color);
this.setScale(width, height, xstep, ystep); this.setScale(width, height, xstep, ystep);
this.transformToScale(graphics); this.transformToScale(graphics);
var tmpTranslate = [1, 0, 0, 1, -topLeft[0], -topLeft[1]]; var tmpTranslate = [1, 0, 0, 1, -topLeft[0], -topLeft[1]];
@ -349,17 +349,23 @@ var TilingPattern = function TilingPatternClosure() {
graphics.endPath(); graphics.endPath();
} }
}, },
setFillAndStrokeStyleToContext: function setFillAndStrokeStyleToContext(context, paintType, color) { setFillAndStrokeStyleToContext: function setFillAndStrokeStyleToContext(graphics, paintType, color) {
var context = graphics.ctx,
current = graphics.current;
switch (paintType) { switch (paintType) {
case PaintType.COLORED: case PaintType.COLORED:
var ctx = this.ctx; var ctx = this.ctx;
context.fillStyle = ctx.fillStyle; context.fillStyle = ctx.fillStyle;
context.strokeStyle = ctx.strokeStyle; context.strokeStyle = ctx.strokeStyle;
current.fillColor = ctx.fillStyle;
current.strokeColor = ctx.strokeStyle;
break; break;
case PaintType.UNCOLORED: case PaintType.UNCOLORED:
var cssColor = _util.Util.makeCssRgb(color[0], color[1], color[2]); var cssColor = _util.Util.makeCssRgb(color[0], color[1], color[2]);
context.fillStyle = cssColor; context.fillStyle = cssColor;
context.strokeStyle = cssColor; context.strokeStyle = cssColor;
current.fillColor = cssColor;
current.strokeColor = cssColor;
break; break;
default: default:
throw new _util.FormatError('Unsupported paint type: ' + paintType); throw new _util.FormatError('Unsupported paint type: ' + paintType);

4
lib/pdf.js

@ -14,8 +14,8 @@
*/ */
'use strict'; 'use strict';
var pdfjsVersion = '1.9.556'; var pdfjsVersion = '1.9.558';
var pdfjsBuild = '2916ed08'; var pdfjsBuild = 'f2618eb2';
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,7 +14,7 @@
*/ */
'use strict'; 'use strict';
var pdfjsVersion = '1.9.556'; var pdfjsVersion = '1.9.558';
var pdfjsBuild = '2916ed08'; var pdfjsBuild = 'f2618eb2';
var pdfjsCoreWorker = require('./core/worker.js'); var pdfjsCoreWorker = require('./core/worker.js');
exports.WorkerMessageHandler = pdfjsCoreWorker.WorkerMessageHandler; exports.WorkerMessageHandler = pdfjsCoreWorker.WorkerMessageHandler;

2
package.json

@ -1,6 +1,6 @@
{ {
"name": "pdfjs-dist", "name": "pdfjs-dist",
"version": "1.9.556", "version": "1.9.558",
"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