|
|
@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { |
|
|
|
(typeof window !== 'undefined' ? window : this).PDFJS = {}; |
|
|
|
(typeof window !== 'undefined' ? window : this).PDFJS = {}; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
PDFJS.version = '1.1.101'; |
|
|
|
PDFJS.version = '1.1.103'; |
|
|
|
PDFJS.build = '4824baf'; |
|
|
|
PDFJS.build = '6159da0'; |
|
|
|
|
|
|
|
|
|
|
|
(function pdfjsWrapper() { |
|
|
|
(function pdfjsWrapper() { |
|
|
|
// Use strict in our context only - users might not want it
|
|
|
|
// Use strict in our context only - users might not want it
|
|
|
@ -3287,11 +3287,8 @@ function createScratchCanvas(width, height) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function addContextCurrentTransform(ctx) { |
|
|
|
function addContextCurrentTransform(ctx) { |
|
|
|
// If the context doesn't expose a `mozCurrentTransform`, add a JS based on.
|
|
|
|
// If the context doesn't expose a `mozCurrentTransform`, add a JS based one.
|
|
|
|
if (!ctx.mozCurrentTransform) { |
|
|
|
if (!ctx.mozCurrentTransform) { |
|
|
|
// Store the original context
|
|
|
|
|
|
|
|
ctx._scaleX = ctx._scaleX || 1.0; |
|
|
|
|
|
|
|
ctx._scaleY = ctx._scaleY || 1.0; |
|
|
|
|
|
|
|
ctx._originalSave = ctx.save; |
|
|
|
ctx._originalSave = ctx.save; |
|
|
|
ctx._originalRestore = ctx.restore; |
|
|
|
ctx._originalRestore = ctx.restore; |
|
|
|
ctx._originalRotate = ctx.rotate; |
|
|
|
ctx._originalRotate = ctx.rotate; |
|
|
@ -3300,7 +3297,7 @@ function addContextCurrentTransform(ctx) { |
|
|
|
ctx._originalTransform = ctx.transform; |
|
|
|
ctx._originalTransform = ctx.transform; |
|
|
|
ctx._originalSetTransform = ctx.setTransform; |
|
|
|
ctx._originalSetTransform = ctx.setTransform; |
|
|
|
|
|
|
|
|
|
|
|
ctx._transformMatrix = [ctx._scaleX, 0, 0, ctx._scaleY, 0, 0]; |
|
|
|
ctx._transformMatrix = ctx._transformMatrix || [1, 0, 0, 1, 0, 0]; |
|
|
|
ctx._transformStack = []; |
|
|
|
ctx._transformStack = []; |
|
|
|
|
|
|
|
|
|
|
|
Object.defineProperty(ctx, 'mozCurrentTransform', { |
|
|
|
Object.defineProperty(ctx, 'mozCurrentTransform', { |
|
|
@ -3676,6 +3673,8 @@ var CanvasGraphics = (function CanvasGraphicsClosure() { |
|
|
|
this.smaskCounter = 0; |
|
|
|
this.smaskCounter = 0; |
|
|
|
this.tempSMask = null; |
|
|
|
this.tempSMask = null; |
|
|
|
if (canvasCtx) { |
|
|
|
if (canvasCtx) { |
|
|
|
|
|
|
|
// NOTE: if mozCurrentTransform is polyfilled, then the current state of
|
|
|
|
|
|
|
|
// the transformation must already be set in canvasCtx._transformMatrix.
|
|
|
|
addContextCurrentTransform(canvasCtx); |
|
|
|
addContextCurrentTransform(canvasCtx); |
|
|
|
} |
|
|
|
} |
|
|
|
this.cachedGetSinglePixelWidth = null; |
|
|
|
this.cachedGetSinglePixelWidth = null; |
|
|
|