Merge pull request #3305 from yurydelendik/annotation-clear-state

Reset canvas state before drawing annotations
This commit is contained in:
Yury Delendik 2013-05-29 04:59:40 -07:00
commit 10ffc8bc99
3 changed files with 59 additions and 24 deletions

View file

@ -1647,6 +1647,15 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
this.restore();
},
beginAnnotations: function CanvasGraphics_beginAnnotations() {
this.save();
this.current = new CanvasExtraState();
},
endAnnotations: function CanvasGraphics_endAnnotations() {
this.restore();
},
beginAnnotation: function CanvasGraphics_beginAnnotation(rect, transform,
matrix) {
this.save();