|
|
@ -187,6 +187,7 @@ var CanvasExtraState = (function CanvasExtraStateClosure() { |
|
|
|
this.fillAlpha = 1; |
|
|
|
this.fillAlpha = 1; |
|
|
|
this.strokeAlpha = 1; |
|
|
|
this.strokeAlpha = 1; |
|
|
|
this.lineWidth = 1; |
|
|
|
this.lineWidth = 1; |
|
|
|
|
|
|
|
this.paintFormXObjectDepth = 0; |
|
|
|
|
|
|
|
|
|
|
|
this.old = old; |
|
|
|
this.old = old; |
|
|
|
} |
|
|
|
} |
|
|
@ -1102,6 +1103,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() { |
|
|
|
paintFormXObjectBegin: function CanvasGraphics_paintFormXObjectBegin(matrix, |
|
|
|
paintFormXObjectBegin: function CanvasGraphics_paintFormXObjectBegin(matrix, |
|
|
|
bbox) { |
|
|
|
bbox) { |
|
|
|
this.save(); |
|
|
|
this.save(); |
|
|
|
|
|
|
|
this.current.paintFormXObjectDepth++; |
|
|
|
|
|
|
|
|
|
|
|
if (matrix && isArray(matrix) && 6 == matrix.length) |
|
|
|
if (matrix && isArray(matrix) && 6 == matrix.length) |
|
|
|
this.transform.apply(this, matrix); |
|
|
|
this.transform.apply(this, matrix); |
|
|
@ -1116,7 +1118,12 @@ var CanvasGraphics = (function CanvasGraphicsClosure() { |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
paintFormXObjectEnd: function CanvasGraphics_paintFormXObjectEnd() { |
|
|
|
paintFormXObjectEnd: function CanvasGraphics_paintFormXObjectEnd() { |
|
|
|
|
|
|
|
var depth = this.current.paintFormXObjectDepth; |
|
|
|
|
|
|
|
do { |
|
|
|
this.restore(); |
|
|
|
this.restore(); |
|
|
|
|
|
|
|
// some pdf don't close all restores inside object
|
|
|
|
|
|
|
|
// closing those for them
|
|
|
|
|
|
|
|
} while (this.current.paintFormXObjectDepth >= depth); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
paintJpegXObject: function CanvasGraphics_paintJpegXObject(objId, w, h) { |
|
|
|
paintJpegXObject: function CanvasGraphics_paintJpegXObject(objId, w, h) { |
|
|
|