mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Ensure that the clipping path is reset when the state is restored (issue 6413)
According to the specification, see `NOTE 2` in http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/PDF32000_2008.pdf#G7.3882161, it appears that we should ensure that the clipping path is reset when the restore (`Q`) operator is encountered. Fixes 6413.
This commit is contained in:
parent
0020f33873
commit
cfd5a64df5
1 changed files with 3 additions and 0 deletions
|
@ -970,6 +970,9 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
|
|||
this.current = this.stateStack.pop();
|
||||
this.ctx.restore();
|
||||
|
||||
// Ensure that the clipping path is reset (fixes issue6413.pdf).
|
||||
this.pendingClip = null;
|
||||
|
||||
this.cachedGetSinglePixelWidth = null;
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue