mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Ensure that the baseTransform
is applied when rendering annotations
Fixes 3350. Fixes 5946. Fixes 6334. Fixes 6722. Probably fixes 3826 (since the PDF files are no longer available, I cannot confirm it).
This commit is contained in:
parent
ad4354c0bd
commit
2f2ea6160b
4 changed files with 12 additions and 0 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue