1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Merge pull request #6814 from Snuffleupagus/beginAnnotations-baseTransform

Ensure that the `baseTransform` is applied when rendering annotations
This commit is contained in:
Tim van der Meij 2015-12-28 18:32:50 +01:00
commit edf8ccc1d8
4 changed files with 12 additions and 0 deletions

View file

@ -1839,6 +1839,10 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
beginAnnotations: function CanvasGraphics_beginAnnotations() {
this.save();
this.current = new CanvasExtraState();
if (this.baseTransform) {
this.ctx.setTransform.apply(this.ctx, this.baseTransform);
}
},
endAnnotations: function CanvasGraphics_endAnnotations() {