mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 17:55:37 +02:00
Reset canvas state before drawing annotations
Conflicts: src/core.js
This commit is contained in:
parent
67eb3bbc68
commit
336aa38f4a
3 changed files with 59 additions and 24 deletions
|
@ -1515,6 +1515,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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue