mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 17:55:37 +02:00
Merge pull request #6906 from KamiHQ/fix-printing
avoid apply transform twice for composite context
This commit is contained in:
commit
c6d2b7f9d9
1 changed files with 3 additions and 0 deletions
|
@ -856,7 +856,10 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
|
||||||
|
|
||||||
if (this.transparentCanvas) {
|
if (this.transparentCanvas) {
|
||||||
this.ctx = this.compositeCtx;
|
this.ctx = this.compositeCtx;
|
||||||
|
this.ctx.save();
|
||||||
|
this.ctx.setTransform(1, 0, 0, 1, 0, 0); // Avoid apply transform twice
|
||||||
this.ctx.drawImage(this.transparentCanvas, 0, 0);
|
this.ctx.drawImage(this.transparentCanvas, 0, 0);
|
||||||
|
this.ctx.restore();
|
||||||
this.transparentCanvas = null;
|
this.transparentCanvas = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue