mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
parent
5b4c2fe1a8
commit
518b776e43
3 changed files with 13 additions and 1 deletions
|
@ -2701,9 +2701,12 @@ class CanvasGraphics {
|
|||
} else {
|
||||
resetCtxToDefault(this.ctx);
|
||||
|
||||
// Consume a potential path before clipping.
|
||||
this.endPath();
|
||||
|
||||
this.ctx.rect(rect[0], rect[1], width, height);
|
||||
this.ctx.clip();
|
||||
this.endPath();
|
||||
this.ctx.beginPath();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue